Skip to content

Offchain database and API service for Circles

License

Notifications You must be signed in to change notification settings

CirclesUBI/circles-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 12, 2021
afc12b6 · Mar 12, 2021
Mar 4, 2021
Nov 16, 2020
Mar 11, 2021
Mar 5, 2021
Aug 27, 2019
Aug 27, 2019
Mar 5, 2021
Aug 27, 2019
Mar 11, 2021
Mar 4, 2021
Aug 27, 2019
Aug 27, 2019
Mar 4, 2021
Mar 12, 2021
Oct 29, 2020
Aug 27, 2019
Mar 5, 2021
Jul 17, 2020
Mar 12, 2021
Mar 12, 2021
Mar 11, 2021

Repository files navigation

circles-api

Offchain API service for Circles


An offchain API service to safely store and resolve Circles user data from public adresses and find transitive transfer paths to send tokens within the trust graph.

Features

  • Create and search off-chain data like transfer descriptions and user profiles
  • Indexes and stores Circles trust network
  • Calculate transitive transfer steps to send Circles

Requirements

  • NodeJS environment (tested with v12 and v14)
  • PostgreSQL database
  • Redis

Usage

Check out the Dockerfile for running the circles-api on your server.

Development

# Install dependencies
npm install

# Copy .env file for local development
cp .env.example .env

# Seed and migrate database
npm run db:migrate
npm run db:seed

# Run tests
npm run test
npm run test:watch

# Check code formatting
npm run lint

# Start local server and watch changes
npm run watch:all

# Build for production
npm run build

# Run production server
npm start
npm worker:start

License

GNU Affero General Public License v3.0 AGPL-3.0