/angular-4-with-authentication-quickstart-boilerplate

Angular 4 with authentication Quick Start setup to get you started on your new project

Primary LanguageTypeScript

Angular 4 Quick Start Boilerplate

This project was generated with Angular CLI version 1.2.1.

Set up

git clone https://github.com/TriPhamQ/angular-4-with-authentication-quickstart-boilerplate.git {{project_name}}. cd {{project_name}}. npm install. cd angular-src. npm install.

To build bundle.js and start server

Start up MongoDB (linux): sudo service mongod start. Start up MongoDB (windows): mongod. From inside angular-src run command: ng build. From inside angular-4-quickstart-boilerplate run command: npm start.

Development server

Run npm start at root/angular-src for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|module.

Build

Run npm build at root/angular-src to build the project. The build artifacts will be stored in the public/ directory. Use the -prod flag for a production build.

Running unit tests

Run npm test at root/angular-src to execute the unit tests via Karma.

Running end-to-end tests

Run npm e2e at root/angular-src to execute the end-to-end tests via Protractor. Before running the tests make sure you are serving the app via npm start.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.