This template project for building MEAN applications is based on Mongoose, Express, Angular and NodeJS. The template uses the Angular CLI build system for compilation and deployment of the frontend application into the NodeJS server.
Below instructions explain how to get started using this template, either with or without live updates as source files changes.
You can try the template application at (https://mean-plain-template.herokuapp.com/). The online example is deployed to free services at Heroku (https://www.heroku.com) and mLab (https://mlab.com).
- Install NodeJS (https://nodejs.org)
- Install Angular CLI (https://cli.angular.io)
- Install Mongo (https://www.mongodb.com)
- Clone this project
- Open root folder in terminal
- Execute: npm run prepare
- Execute: npm install
- Start mongod daemon, learn how on (https://docs.mongodb.com/manual/administration/install-community/)
- Execute: npm run build
- Execute: npm run start
- Execute: npm run live_build
- Execute: npm run live_start
- Open your localhost in browser (http://127.0.0.1:3000/)
Contribution is very welcome. Please, follow code of conduct.