Prerequisites:
Steps:
- Install NodeJS dependencies:
npm i - Create files named
.common.env - The
.common.envfile should contain this line:
- Start server with development mode:
npm run dev- Start server with production mode:
npm run start- Generate
JWTcertificates:
npm run generate:certsThis 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 fileuse the snippetroutes - To add a new route to an existing
routes fileuse the snippetroutes:add - To add a new method to an existing
routeuse the snippetroutes:method