Skip to content

Totem-gdn/totem-core-explorer-api

Repository files navigation

Totem Core Explorer API

Totem Core Explorer API service provide an API gateway for the Totem Core Explorer Backend service.

Development

  1. Install dependencies:
    npm install
  2. Create Redis in Docker, or use local variant.
  3. 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
  4. Run service in development mode:
    npm run start:dev
    Debug mode:
    npm run start:debug
    If Node.js default debug port 9229 is busy -- you can change it like this:
    npm run start:debug -- --debug 0.0.0.0:9228

Build without Docker

  1. Build service with version (git required):
    npm run build
    Build service without version (without git):
    npm run build:app
  2. Run service:
    node dist/main

Build with Docker

  1. Build docker image:
    docker build -f deployment/docker/Dockerfile -t totem-core-explorer-api:latest .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published