/nodejs-expressjs-typescript-starter

Node.js with Express.js + TypeScript backend starter template with simple authentication & authorization.

Primary LanguageTypeScript

Node.js with Express.js + TypeScript Backend Starter Template

This is a starter template for starting a new backend project with Node.js with Express.js + TypeScript.

Features

  • PNPM package manager
  • TypeScript with SWC compiler
  • MongoDB
  • Simple authorization and authentication
  • Eslint

Advice

  • Refactor MongoDB functions usage
  • Refactor folder structure to follow Nest.js standard
  • Store all configurations data in .env file or third-party secret manager
  • Adjust tsconfig.json file according to your need

Scripts

  • Run pnpm dev to start the development server
    pnpm dev
  • Run pnpm lint to run eslint to check code consistency
    pnpm lint
  • Run pnpm build to build the app
    pnpm build