Build a blog with Areto Node.js framework

Environment setting

Create an empty WebStorm project in the areto-blog directory.

Select the version of JavaScript: Settings -> Languages&Frameworks -> JavaScript -> ECMAScript 6.

Add the package.json configuration file to the project root. Insert the ejs-locals view template and the multer uploaded file processor to the dependency section.

package.json

{
  "name": "areto-blog",
  "version": "1.0.0",
  "description": "Areto Blog",
  "license": "MIT",
  "dependencies": {
    "areto": "^0.7.2",
    "ejs-locals": "^1.0.2",
    "multer": "^1.3.0"
  }
}

Run the package installation from the WebStorm terminal or the system console.

cd /areto-blog
npm install