Git Product home page Git Product logo

tradehelper's Introduction

TradeHelper

From within project directory:

Build and start : $ docker-compose up -d --build
Live logs : $ docker-compose logs -f
Stop : $ docker-compose down

First time running?
$ docker-compose exec backend aerich init-db
Success create app migrate location migrations/models
Success generate schema for app "models"

Made changes to the models?
$ docker-compose exec backend aerich migrate
$ docker-compose exec backend aerich upgrade

Want a python interpreter?
$ docker exec -it backend ipython
Want to connect to db?
$ docker-compose exec db psql --username=postgres_user --dbname=db


!! YOU must manully create your own .env file for the following services...or adding them do docker-compose.yml environment:

/backend/.env:
POSTGRES_USER=postgres_user
POSTGRES_PASSWORD=some_password
POSTGRES_DB=db
SECRET_KEY=some_secret_key

/db/.env:
POSTGRES_USER=postgres_user
POSTGRES_PASSWORD=some_password
POSTGRES_DB=db

/notifier/.env:
TELEGRAM_CHAT_ID=some_number
TELEGRAM_TOKEN=some_code

/scheduler/.env:
BINANCE_API_KEY=some_code
BINANCE_API_SECRET=some_secret
HUEY_DB=/tmp/huey.db

  • secret keys can be generated with : openssl rand -hex 32

tradehelper's People

Contributors

flaviumarinescu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.