Skip to content

bitgreen/carbon-api

Repository files navigation

Bitgreen Carbon API

Requirements

You need the following in order to run this API:

  • Nodejs & npm
  • Postgresql

Installation

Clone this repo and install packages via npm.

npm install
cp .env.example .env    #create .env from example
nano .env               #enter your database info & save

Create DB tables, and optionally run seed script:

npx prisma db push
npx prisma db seed      #optional

Starting API server, you can define port at .env file. Default port is 3000.

npm run start

To run fetcher, run the following command:

npm run fetcher

API Docs

Check out API docs here.

Docker

You can run this API in Docker containers with minimal effort as follows:

Requirements:

Install docker and docker composer from https://www.docker.com

Build and Run

from the project folder execute:

docker compose up -d

A database with some seed data, the Api Serve and the Fetcher Server will be deployed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published