A backend application written in Node.js with TypeScript, using ESLint for linting, Vitest for testing, and Docker for containerization.
- Compile the TypeScript files:
npm run build
- Start the app:
npm start
By default, the backend runs on port 5001
.
Run all tests using Vitest:
npm run test
Check your code for linting and style issues:
npm run lint
Make sure the app is compiled before building the image:
npm run build
Then build the Docker image:
docker build -t your-docker-username/your-app-name:latest .
Run the container and map port 5001:
docker run -d -p 5001:5001 your-docker-username/your-app-name:latest
Your app will be accessible at:
http://localhost:5001
- Build:
npm run build
- Test:
npm run test
- Lint:
npm run lint
- Start:
npm start
- Docker build:
docker build -t ...
- Docker run:
docker run -d -p 5001:5001 ...