Prerequisites:
Steps:
- Install NodeJS dependencies:
npm i
- Create files named
.common.env
- The
.common.env
file should contain this line:
- Start server with development mode:
npm run dev
- Start server with production mode:
npm run start
- 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