Totem Core Explorer API service provide an API gateway for the Totem Core Explorer Backend service.
- Install dependencies:
npm install
- Create Redis in Docker, or use local variant.
- Create
.env
file from example.env.sample
and fill in environment variables:PORT=3000 REDIS_URL=redis://127.0.0.1:6379/0 EXPLORER_BACKEND_URL=127.0.0.1:50051
- Run service in development mode:
Debug mode:
npm run start:dev
If Node.js default debug portnpm run start:debug
9229
is busy -- you can change it like this:npm run start:debug -- --debug 0.0.0.0:9228
- Build service with version (git required):
Build service without version (without git):
npm run build
npm run build:app
- Run service:
node dist/main
- Build docker image:
docker build -f deployment/docker/Dockerfile -t totem-core-explorer-api:latest .