Skip to content

genonfire/bbgo-core

Repository files navigation

bbgo-core

API CodeQL codecov

Total bbs system made by django

bbgo-ui: https://github.com/genonfire/bbgo-ui

UI Demo: https://genonfire.github.io/bbgo-demo/

Create database before setup

$ psql
postgres=# create user <DB_USER>;
postgres=# alter user <DB_USER> with password '<DB_PASSWORD>';
postgres=# create database <DB_NAME> owner <DB_USER>;

Getting started with bbgo

Create Python + virtualenv and activate it

$ pip install -r requirements.txt
$ python manage.py migrate
$ ./serve.sh

Docker

$ docker-compose up -d --build

unittest

$ ./runtest.sh flake8  # run flake8 only
$ ./runtest.sh  # run all unit tests + flake8
$ ./runtest.sh --clean  # without --keepdb option
$ ./runtest.sh case [case name]  # run a specific unit test in debug-mode

Swagger

http://localhost:8000/redoc/
http://localhost:8000/swagger/