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 startBy default, the backend runs on port 5001.
Run all tests using Vitest:
npm run testCheck your code for linting and style issues:
npm run lintMake sure the app is compiled before building the image:
npm run buildThen 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:latestYour 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 ...