@crypitor/crypitor
v1.1.0
Published
Real-time crypto monitor and alert system
Downloads
5
Maintainers
Readme
Installation
$ yarn
Running the app
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
Test
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
Using docker
Build development with start watch
make build
make up
Build production
Build docker container and push to docker registry
yarn build
docker build -f apps/api/Dockerfile --target production -t <name>/api:<version> .
docker build -f apps/monitor-service/Dockerfile --target production -t <name>/monitor:<version> .
docker build -f apps/worker-service/Dockerfile --target production -t <name>/worker:<version> .
docker push <name>/api:<version>
docker push <name>/monitor:<version>
docker push <name>/worker:<version>
Run production
cd docker
# config env for production
cp .env.sample .env
# start docker compose
docker compose up -d
Set up dev environment
Start local dev env
make up-deps
# start api module
yarn start:dev api
# start monitor service
yarn start:dev monitor-service
# start worker service
yarn start:dev worker-service
# stop deps
make down-deps
Start docker compose dev
docker compose -f docker-compose-dev.yml up -d
License
Nest is MIT licensed.