node-api-template

Teck Stack

  • Node.js
  • express

Dependencies

  • bcryptjs
  • body-parser
  • cookie-parser
  • compression
  • cors
  • dotenv
  • express-async-errors
  • express-validator
  • helmet
  • jsonwebtoken
  • morgan

Tools

  • eslint
  • prettier

Folder Structure

/data

mock data

/public

static files

/routes

Naming Convention: [endpoint].js

API endpoints

/utils

All utility functions will be here.

/views

html files

index.js

entry point