MatchMaking

#python#flask#mysql#sqlalchemy#jinja#bootstrap#html#css
bees
Manuel Solalinde

A simple flask application to balance team players for video game matches.

Live Demo

  1. Clone the repo:

    git clone https://github.com/manolosolalinde/matchmaking.git
  2. Start a postgresql server
  3. Create a .env file with the following content

    DATABASE_URL="postgres://postgres:<password>@<databaseurl>:5432/mydatabase"
  4. Run:

    python create.py
    python import.py
    flask run

Commands to build

# Build and push to remote repository
gcloud builds submit --tag gcr.io/<projectname>/matchmaking --project <projectname>
    # ALTERNATIVELY YOU CAN:
        ## step1) building
        # docker build . -t gcr.io/<projectname>/matchmaking
        ## step2) Upload to google cloud repository
        # docker push gcr.io/<projectname>/matchmaking
# Deploy to Cloud Run
gcloud config set run/region us-central1
gcloud run deploy --image gcr.io/<projectname>/matchmaking --platform managed --port=5000 --project <projectname>
Design and Gatsby starter by Marguerite Roth