We are going to start by setting up the base application using the same boilerplate code used in the previous chapter. Follow these simple steps to achieve this:
Clone the project from GitHub: https://github.com/robert52/express-api-starter.
Rename your boilerplate project
mean-blueprints-chatapp
.If you want, you can stop pointing to the initial Git repository by running the following command:
git remote remove origin
Jump to your working directory:
cd mean-blueprints-chatapp
Install all dependencies:
npm install
Create a development configuration file:
cp config/environments/example.js config/environments/development.js
Your configuration file, config/environments/development.js
, should look similar to the following:
module.exports = { port: 3000, hostname: '127.0.0.1', baseUrl: 'http://localhost:3000', mongodb: { uri: 'mongodb://localhost/chatapp_dev_db' }, app: { name: 'MEAN Blueprints - chat application' }, serveStatic: true, session...