Giter Site home page Giter Site logo

braincrumbz / yangtse Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 95 KB

Yet Another aNGular Two Starter, with Express.js this time

Home Page: http://www.braincrumbz.com/

License: MIT License

JavaScript 60.73% CSS 6.27% TypeScript 29.23% HTML 3.77%

yangtse's Introduction

YANGTSE

Yet Another aNGular Two Starter, with Express.js this time


A node.js based, client/server solution showing how to start up a project involving following technologies:

  • Express.js to serve web pages,
  • Angular 2 framework for client-side Single Page Application,
    • Ahead Of Time (AOT) compilation for a quicker application startup
  • TypeScript 2 as an alternative to JavaScript to write client code,
    • @types to include type definitions of external code
  • WebPack 2 module bundler to process and build client source files,
    • WebPack Hot Module Replacement to re-compile and reload web page when client source code changes,
    • Development, test and production builds
  • Karma test runner and Jasmine BDD testing library to unit test client source code.

Credits

This project draws from the experience and hints given by other, earlier Angular 2 starter projects. You might want to have a look at those, in case they might better suits your needs. Among the others, there are:

Prerequisites

Here are the tools that should be present in your development environment in order to work with this project:

node.js environment

Server side application relies on node.js to run. Client side application relies on JavaScript and TypeScript, but it needs node.js anyway to be built and processed.

  • nvm-windows 1.1.0, a node.js version management utility for Windows by Corey Butler
  • node.js 4.3.2
  • npm 3.8.0

Quick start

Clone or download this repository:

git clone --depth 1 https://github.com/BrainCrumbz/YANGTSE.git
cd YANGTSE

Install dependencies:

npm install

Serve application in development, with live reload and module replacement enabled:

npm start

Launch browser and go to http://localhost:3000/.

Available commands

This project has a number of npm-based commands in order to build and run both client and server source code.

Install

Install all dependencies:

npm install

Uninstall all dependencies:

npm uninstall

Build

Build for development:

npm run build  # or npm run build-dev

Build for production:

npm run build-prod

Clean build output:

npm run clean

Clean build output and all dependencies:

npm run clean-deep

Before building, output will be automatically cleaned. No need to manually clean.

Serve

Serve application in development, with live reload and module replacement enabled:

npm start  # or npm run serve, or npm run serve-dev

Serve application in production:

npm run serve-prod

Before serving, application will be automatically rebuilt. No need to manually build.

Test

Test:

npm test  # or npm run test

Test with debugging enabled (e.g. breakpoints in browser console):

npm run test-debug

Test in watch mode (keep running tests again when code changes):

npm run test-watch

License

MIT

yangtse's People

Contributors

braincrumbz avatar giuseppepiscopo avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.