Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/germainlefebvre4/cryptobot-api
- Owner: germainlefebvre4
- License: mit
- Created: 2021-07-07T08:27:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T23:22:31.000Z (almost 2 years ago)
- Last Synced: 2024-10-10T20:52:22.016Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 223 KB
- Stars: 0
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/
```