Create /.env file:
NODE_ENV=development
DATABASE_URL=postgres://{USER}:{PASS}@127.0.0.1:5432/{DB}
- Install node@7.9.0 & npm
npm install
- To initialize DB schema:
npm run db:migrate
npm run build:watch
npm run server:watch
- Open http://localhost:1337
Add to /.vscode/launch.json:
{
"name": "Node attach",
"type": "node",
"protocol": "inspector",
"request": "attach",
"port": 9229,
"restart": true
}