Implementation of bitcoin asset database
Run a containerized mongoDB
.
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
Be sure to have your system's mongo
's service stopped, or running at a different port.
Request limit from coinAPI = 100 / day
to enable pipenv
, run
$ pipenv shell
$ python main.py
to run without loading the virtual environment:
pipenv run python main.py
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