Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.02 KB

README.md

File metadata and controls

27 lines (22 loc) · 1.02 KB

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