- Clone this repo to your computer:
git clone git@github.com:odil-abdulloyev/express-rest-service.git; - Go to project folder:
cd express-rest-service; - Switch to development branch:
git checkout develop; - Install dependencies:
npm i; - Run program:
npm start; - Run tests in new tab of terminal:
npm test; - Run linter:
npm run lint; - Run ts-compiler:
npm run build.
NodeJs v14 or newer
- Run containers:
docker-compose up - Show images:
docker images - Show running containers:
docker ps - Show all containers:
docker ps -a - Show networks:
docker network ls - Scan image:
docker scan <image_name> - Remove image:
docker rmi <image_id> - Remove unused images, container and networks:
docker system prune - Stop and remove containers:
docker-compose down
- Generate migration:
npm run migration:generate - Run migration:
npm run migration:run - Revert migration:
npm run migration:revert