Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 1.04 KB

README.md

File metadata and controls

59 lines (44 loc) · 1.04 KB

Crypto-Stats

Implementation of bitcoin asset database

Overview

Run a containerized mongoDB.

Usage

Run it at the foreground (hit ctrl-c to stop):

docker-compose up

or

Run it at the background:

docker-compose up -d

Stop it:

docker-compose down

Use Docker GUI to set up custom ports and volume directories. Defaults are:

  • port: 27017
  • database volume: ./database

Notes

Be sure to have your system's mongo's service stopped, or running at a different port.

API

Request limit from coinAPI = 100 / day

PIPENV

to enable pipenv, run

$ pipenv shell
$ python main.py

to run without loading the virtual environment:

pipenv run python main.py

Crontab

add a cronjob to run main.py from inside
the pipenv shell :

*/10 * * * * cd path/to/file/ && /usr/local/bin/pipenv run python main.py

Current State

Screen Recording 2021-03-24 at 10 46 33 AM