We are going to start with our classic boilerplate for an Express application. Follow these steps to set up the base project:
Clone the project from GitHub at https://github.com/robert52/express-api-starter.
Rename your boilerplate project
auction-app
.If you want, you can stop pointing to the initial Git remote repository by running the following command:
git remote remove origin
Jump to your working directory:
cd auction-app
Install all dependencies:
npm install
Create a development configuration file:
cp config/environments/example.js config/environments/development.js
Your configuration file, auction-app/config/environments/development.js
, should look similar to the following:
'use strict'; module.exports = { port: 3000, hostname: '127.0.0.1', baseUrl: 'http://localhost:3000', mongodb: { uri: 'mongodb://localhost/auction_dev_db' }, app: { name: 'MEAN Blueprints - auction application' }, serveStatic: true, session: { type: 'mongo', ...