Skip to content

This is a MEAN Stack project with Angular 4 on frontend and expressJS with MongoDB as backend.

License

Notifications You must be signed in to change notification settings

amcysoft/angular4-mean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular4-MEAN

This is a MEAN Stack project with Angular 4 on frontend and expressJS with MongoDB as backend. Frontend and Backend code have been divided in client and server folder respectively.

Project Configuration

Project is setup with most of the required configurations like database initialization, routing, and many more. Follow the following steps to make it ready to go.

npm install
npm install -g nodemon (If not root user then add add sudo in start)

Open server/config.js and provide secretKey and mongoURL or add these variables to environment variables for security. Open terminal and run the following command to start your server

npm run server

Open another terminal and run the following command to serve your angular

npm run dev

Development server

After npm run dev. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files on frontend or backend.

Code scaffolding

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

Build

Run ng build to build the project. The build artifacts will be stored in the client/public/ directory. Use the -prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

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

About

This is a MEAN Stack project with Angular 4 on frontend and expressJS with MongoDB as backend.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published