Skip to content

saifulislamsojib/backend-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Robust and scalable backend server template for NodeJS + TypeScript

With:

  • Framework: Express JS

  • Database: MongoDB with mongoose

  • Tester: Testes with Vitest, for api test also use supertest and for mongodb used mongodb-memory-server

  • Linter: Typescript ESLint Airbnb style guidelines

  • Formatter: Prettier Formatter with ESLint

  • Dockerize: Dockerize for production, staging and development environments

  • Husky Git Hooks: Husky pre-commit hook with lint-staged for eslint and prettier, pre-push hook for run tests and commit-msg hook for commit-lint for checking commit messages

  • CI/CD with Github Actions: Github Actions forCode Checker (lint-check, type-check & run tests) & Commit Lint for checking commit messages

  • Path alias: Path alias with tsconfig-paths

  • HTTP & Application Logger: Pino logger with pino, pino-http and pino-pretty

  • Caching with Redis: Caching with Redis server

Instructions for local server running

  1. First ensure to add DB_URI in `env` variable
  2. Then install necessary dependencies using `pnpm install`
  3. To run local server use `pnpm dev` command
  4. To build the project run `pnpm build` command
  5. To Lint and format the project run `pnpm lint`

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published