Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/germainlefebvre4/cryptobot-api

Project to self-host a cryptobot farm based on whittlem pycryptobot. Main entry at germainlefebvre4 cryptobot-project.
https://github.com/germainlefebvre4/cryptobot-api

Last synced: 15 days ago
JSON representation

Project to self-host a cryptobot farm based on whittlem pycryptobot. Main entry at germainlefebvre4 cryptobot-project.

Awesome Lists containing this project

README

        

# Cryptobot API

API to run inside BSP Auto project.

## Getting started
Install required packages:
```bash
sudo apt update
sudo apt install python3-pip python3-dev
pip install pipenv
```

Setup the database:
```bash
docker-compose up -d
```

Run the app:
```bash
pipenv update
pipenv run alembic upgrade head
pipenv run python app/initial_data.py
pipenv run uvicorn app.main:app --port=8080 --reload
```

**Troubleshooting**

Some distributions might miss some packages. These are some hints if needed:
```bash
# cryptography/cffi
sudo apt install build-essential libssl-dev libffi-dev libpq-dev
```

## Development

### Setup workspace
```bash
sudo apt update
sudo apt install python3-pip python3-dev
pip install pipenv
pipenv update --dev
```

### Run locally
This section use docker database called `cryptobot`.
```bash
docker-compose up -d
pipenv run alembic upgrade head
pipenv run python app/initial_data.py
pipenv run uvicorn app.main:app --port=8080 --reload
```

### Run tests
This section use docker database called `cryptobot_test`.
```bash
docker-compose up -d
pipenv run pytest -sv app/tests/
```