Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

moeenn/node-api-core

Repository files navigation

Node API Core

A vanilla Javascript JSON API boilerplate for NodeJS API. Following tools are already configured

  • Server configuration using fastify
  • Database connection using prisma
  • Absolute paths using NodeJS built-in methods
  • Automated testing using vitest
  • Typechecking using jsdoc and tsc
  • Code formatting using prettier
  • Linting using eslint

Scripts

# start the application (in production mode)
$ npm start:prod

# run the tests
$ npm test ./src/

# perform linting and type checking
$ npm run check

# format code
$ npm run fmt