Creating the baseline application

Let's start building the application. First off, we will create an application folder and add some root files, such as .gitignore, package.json, .env, and many more.

Adding the root files

  1. Create a folder called chapter-10.
  2. Inside the chapter-10 folder, create a new file called package.json and add the following code:
     { "name": "chapter-10", "version": "1.0.0", "main": "server.js", "description": "Create an app for the cloud with Docker", "scripts": { "build": "npm-run-all build-*", "build-css": "node-sass public/css/main.scss > public/css/main.css", "postinstall": "npm run build", "start": "node server.js", "test": "mocha", "watch": "npm-run-all --parallel watch:*", "watch:css": "nodemon -e scss -w public/css -x ...

Get Node.js 6.x Blueprints now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.