Prerequisites:
Steps:
- Install NodeJS dependencies:
npm i
- Create files named
.common.env
and.local.env
- The
.common.env
file should contain this line:
NODE_ENV=local
- Copy the content of the file
.example.env
into the file.local.env
and set the right values of the variables - Please make sure you have environment for PostgreSQL
- Create
podopolo
Database in PgAdmin - Run the command:
npm run start
npm run test
- Generate
JWT
certificates:
npm run generate:certs
This will generate two file: es512-private.pem and es512-public.pem. Make sure you have already installed openssl
- Generate a new schema:
npm run generate:schema
- To initiate a
routes file
use the snippetroutes
- To add a new route to an existing
routes file
use the snippetroutes:add
- To add a new method to an existing
route
use the snippetroutes:method