Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 909 Bytes

README.md

File metadata and controls

49 lines (31 loc) · 909 Bytes

Node Backend Template

Run the project

Prerequisites:

Steps:

  • Install NodeJS dependencies: npm i
  • Create files named .common.env
  • The .common.env file should contain this line:

Usefull commands

  • Start server with development mode:
npm run dev
  • Start server with production mode:
npm run start

Generators

  • 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

VSCode snippets

  • To initiate a routes file use the snippet routes
  • To add a new route to an existing routes file use the snippet routes:add
  • To add a new method to an existing route use the snippet routes:method