A boilerplate for Server side rendered Angular 2 web applications using TypeScript 2
Note: This project is under active development. However can be used for reference.
- Server-Side Rendering for Angular 2
- Express REST Server
- Mongodb Database
- Webpack Module loader
- JWT authentication
- In-memory Template caching
git clone --depth=1 [email protected]:codefoxes/angular2-hackathon-starter.git a2hs
cd a2hs
npm i -g cordova ionic
npm install
npm i -g phonegap
(Optional - To use with Phonegap developer app)
npm start
to build your client app and start a web servernpm run build
to prepare a distributable bundle
- run
npm start
andnpm run watch
in two separate terminals to build your client app, start a web server, and allow file changes to update in realtime ionic serve
to start ionic serverionic platform add android
to prepare android buildionic build android
to build android appphonegap serve
to serve to Phonegap Developer App
npm run watch
to build your client app and start a web server