/angular2-express-starter

Angular 2 and Express :family: ( Heroku ready )

Primary LanguageTypeScriptMIT LicenseMIT

Angular2 Express Starter

  • Angular 2 ( 2.1 release )
  • ExpressJS ( 4.x - with compression )
  • Webpack ( angular-cli )
  • Redux ( NgRx/Store - with server calls)

Deploy

Install / Development

git clone https://github.com/vladotesanovic/angular2-express-starter
cd angular2-express-starter

# Install dependencies
npm install

# start server
npm run start

# Client url: http://localhost:4200
# Application ( epxress ) API: http://localhost:4300

Build / Production

npm run build

## Deploy dist folder to app server

Structure of dist folder:

/dist/server <-- expressjs
/dist/client <-- angular2