The main purpose of this repository is to show a design and develop real-time application using latest angular version, use this application as a reference when you start a new project OR you want to improve code quality of your existing application. We will try to keep this as up-to-date as possible, but community contributions and recommendations for improvements are encouraged and will be most welcome.
- Modular based Project folder structure
- Modular based Routing
- Authentication & Authorization using auth guard
To build and run this app locally you will need a few things:
- Install Node.js
- Install MongoDB
- Install VS Code
- Install Angular CLI run following command
npm install -g @angular/cli
- Clone the repository
git clone https://github.com/balajihambeere/angular-realtime-app.git <project_name>
- Follow the readme on below link to clone & run the backend repository
https://github.com/balajihambeere/express-mongo-nodejs-es-realtime-app
- Install dependencies
cd <project_name>
npm install
- Start your mongoDB server (you'll probably want another command prompt)
mongod
- Run the backend project
npm start
Navigate to http://localhost:3000
and you should see the server started locally!
- Run
ng serve
for a dev server. Navigate tohttp://localhost:4200/
. The app will automatically reload if you change any of the source files.
ng serve
- Run
ng build
to build the project. The build artifacts will be stored in thedist/
directory. Use the--prod
flag for a production build.
ng build
- Run
ng test
to execute the unit tests via Karma.
ng test
- Run
ng e2e
to execute the end-to-end tests via Protractor.
ng e2e