Giter VIP home page Giter VIP logo

cod-tournament-backend's Introduction

COD Tournament Backend

Built with Flask. API URL:

πŸš€ Quick start

  1. Install

    Navigate into the site’s directory and start it up.

    cd cat-app-backend/
    
    python3 -m venv env
    
    .\env\Scripts\activate
    
    pip3 install -r requirements.txt
  2. Configure credentials.py

    MYSQL_USER='YOUR_DB_USERNAME'
    MYSQL_PASSWORD='YOUR_DB_PASSWORD'
    MYSQL_HOST='YOUR_DB_HOST'
    MYSQL_DB='YOUR_DB_NAME'
    SECRET_KEY='YOUR_SECRET_KEY'
    
  3. Configure .flaskenv

    FLASK_APP=app
    FLASK_ENV=development
    
  4. Initialize DB

    flask db init
    flask db migrate
    flask db upgrade
    
  5. Demo Data

    flask create_demo_data
    flask delete_demo_data
    
  6. Run script

    flask run
  7. Start Celery Worker

    celery worker -A celery_worker.celery --loglevel=info --pool=solo
    
  8. Monitor Celery

    celery -A celery_worker.celery flower
    

cod-tournament-backend's People

Watchers

JB avatar

cod-tournament-backend's Issues

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.