Node.js and Fastify project starter using TypeScript
Note: Need to configure
.env
file to use local server
- colorette - for styling console output
- date-fns - for date operations and formatting
- heapdump - for getting dump of the current memory heap
Install Dependencies
npm install
Setup Pre-commit
npm run prepare
Start Development Server
npm run develop
Build for Production
npm run build
Start Production Server
npm start
Build Image
docker build
Run Image
docker run -p 5000:5000 <image-id>
- VS Code - Install the recommended extensions
- Volta - For managing node versions