rchain-community / rchain-bounties-api

API for the RChain bounties network
https://api.rchain.cloud
0 stars 0 forks source link

RChain bounties network API

A new general API for the RChain bounties platform. This allows anyone to create an interface for the RChain bounties platform.

(This project could also potentially serve as an easy entry point to the data once the bounty system is migrated to the RChain blockchain network. Induviduals could host their own versions of this API and bounty user interfaces could provide users a selection of APIs to choose from.)

Project status

This project is divided in 2 stages:

  1. Read only API that uses the existing rewards.rchain.coop database as source.
  2. Read and write API where features like voting and the trust metric are implemented.

As of this moment in time the first stage is being developed.

Getting Started

Follow these steps to get started:

  1. Clone the repo with git clone https://github.com/th3build/rchain-bounties-api.git
  2. Go to the root of the directory cd rchain-bounties-api
  3. Install the dependencies npm install
  4. Run a local database with this SQL file as source
  5. Change the URL of the database in .env to the location your local database is located
  6. Start the local server: PORT=3000 npm start (the port can be any port you like)

You can now send requests to localhost:3000. Keep the terminal command running in the background, and you can start developing.

Implementation details

Tips

Documentation

COMING SOON