Synapse Analytics REST API computed from data populated by synapse-indexer
- View API docs at https://syn-analytics-api.metagabbar.xyz
- Routes currently supported: src/routes.ts
cp .env.sample .env
- Ensure
MONGO_URI
andREDIS_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
- Ensure
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
ornpm run test:coverage