MatchMaking
A simple flask application to balance team players for video game matches.
-
Clone the repo:
git clone https://github.com/manolosolalinde/matchmaking.git
- Start a postgresql server
-
Create a .env file with the following content
DATABASE_URL="postgres://postgres:<password>@<databaseurl>:5432/mydatabase"
-
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>