Skip to content

br4instormer/fastify-ts-di

Repository files navigation

Base snapshot for nodejs backend using fastify + inversify

Debug via VSCode

Plugins:

  • JWT + Cookies (Twin tokens)
  • CORS
  • .env
  • logging

Using

Install dependencies

npm i

Development mode (watch for changes)

npm run dev

Debug mode

npm run dev:inspect

Build

npm run build

Lint

npm run lint

Lint fix

npm run lint:fix

Build Docker image

docker build --pull --build-arg "NODE_VER=18.16" -t backend .

Run Docker container

docker run --rm -d  --cpus=2 -m 150m -p 8282:8282 -u node:node --name backend backend

Stop Docker container

docker container stop backend

About

Just boilerplate to start one project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published