Enjoy Server Side rendering and Web Workers in your Angular2 Application
#What we've got here
- Server Sider rendering
- Web Workers
- Preboot support (you can experement with its options here)
- Express server
- Typescript with Typings
- PM2
- Webpack
- Unit testing with Karma
#Quick start
# clone the repo without git history
git clone --depth 1 https://github.com/alexpods/angular2-universal-starter.git
# change current directory to angular2-universal-starter
cd angular2-universal-starter
# install dependencies
npm install
# run the server
npm start
Go to http://localhost:3000 in your browser.
You may want to stop or restart the server:
# stop the server
npm stop
# restart the server
npm restart
#Building
# build the probject
npm run buid
# build the project and start to watch for its changes
npm run build:watch
#Testing
# run all tests (single run)
npm test
##Unit Testing
# run unit tests (single run)
npm run test:unit
# run unit tests and start watch for changes
npm run test:unit:watch
#Cleaning
# remove "dist" and "logs" folders
npm run clean
# remove "dist" folder
npm run clean:dist
# remove "logs" folder
npm run clean:logs
#License The MIT License (MIT)
Copyright (c) 2016 Aleksey Podskrebyshev
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.