Skip to content

synapsecns/analytics-api

Repository files navigation

synapse-analytics-api

codecov

Synapse Analytics REST API computed from data populated by synapse-indexer

Endpoints

Local Setup

  • cp .env.sample .env
    • Ensure MONGO_URI and REDIS_URI is set, with mongo being the same instance as synapse-indexer
    • Local instances can be setup using docker as
      • docker run -d -p 27017:27017 mongo
      • docker run -d -p 6379:6379 redis
  • npm i
  • Run in dev
    • npm run dev
  • Run in prod
    • npm run build
    • npm start
  • Tests
    • cp .env.sample .env.test
    • echo $'\nTEST=true' >> .env.test
    • npm test or npm run test:coverage

Releases

No releases published

Packages

No packages published