A minimal MEAN stack skeleton with all required configurations.
A minimal MEAN
stack skeleton with all required configurations.
Please ensure that mongoDB
and Node
is installed and running on your local.
Run the following command in your local project directory to build all required node modules.
npm install
You can modify the port number and database name in the following line in app.js
:
mongoose.connect('localhost:27017/node-angular');
to
mongoose.connect('localhost:<port>/<your-database-name>');
Start webpack
using the following command:
npm run build
Start your node server using following command:
npm start
Goto localhost and your instance will be running