TypeScript Node.js Project.
- pnpm - Fast, disk space efficient package manager.
- TypeScript - a strongly typed programming language.
- Jest - a delightful Testing Framework with a focus on simplicity.
curl -fsSL https://get.pnpm.io/install.sh | sh -
pnpm -vIf you are using fnm - Node.js version manager:
fnm useSet your environment variable in .env file.
# install dependencies
pnpm i
# create `.env`
cp .env.development .env
# π§πΏβπ» Development: serve with hot reload
pnpm dev
pnpm lint
pnpm test
# Compile and transpile the TypeScript code:
pnpm build
# Compile and transpile the TypeScript code, and then runs the resulting `.js` application:
# Starts the app in production
pnpm startIf you want to run Unit tests every time you commit code, you can add pnpm test to .husky/pre-commit.
In develop environment, build first:
pnpm buildIn production environment, install dependencies and run builded source:
pnpm i --production --quiet
pnpm prodThe media directory is used to store supporting files for the application.
Things like requirement documentation, text outlines, etc.
This is the junk drawer for the project.
The data directory holds the types (models/entities) and services (repositories) for data consumed by the application.
The mock directory contains your JSON mock data for testing purposes.
- eslint
- β¨ prettier
- π docker
- π Better DockerFile Syntax
- Code Spell Checker
- markdown lint
- sonar lint
Options: