Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 554 Bytes

README.md

File metadata and controls

17 lines (10 loc) · 554 Bytes

NodeJS API template

Scripts

  • yarn dev: It runs the server for dev environment.
  • yarn start: It runs the server for prod environment.
  • yarn test: It runs the tests.
  • yarn watch:dev: It runs the server for dev environment with hot reload feature.

Tests

Support for ESM syntax in tests is currently enabled by https://jestjs.io/docs/ecmascript-modules.

Linter

How to force ESLint rules in VSCode: https://www.digitalocean.com/community/tutorials/linting-and-formatting-with-eslint-in-vs-code#step-4-%E2%80%94-formatting-on-save