O'Reilly logo

Node.js 6.x Blueprints by Fernando Monteiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required