- TypeScript
- Express.js
- Jest / Supertest
- Docker
git clone https://github.com/GenesisEducationKyiv/hw1-se-school_2022-code-review-DHushchin
npm install
- Create .env file
EMAIL_NAME="example@gmail.com"
EMAIL_PASSWORD="example_password"
EMAIL_HOST="smtp.gmail.com"
EMAIL_PORT="587"
COINMARKETCAP_API_KEY="example_api_key"
PORT="3000"
AMQP_USER="user"
AMQP_PASSWORD="password"
AMQP_HOST="rabbitmq"
AMQP_PORT="5672"
npm start
npm run format:check
npm run format:fix
npm run tslint:check
npm run tslint:fix
npm test
- Build image
docker build -t btc_auh_api .
- Run container
docker run -d -p 3000:3000 --rm --name rate btc_auh_api
- Stop container
docker stop rate
You can also do the same using Makefile.
- Build image
make build
- Run container
make run
- Stop container
make stop
- Run services
docker-compose run --rm waitforrabbit
docker-compose up btc-uah log-consumer