anhdowastaken / worldcup_prediction_game

Prediction game for World Cup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WORLD CUP PREDICTION GAME

Prediction game for World Cup

1. Backend

I'm using Flask with Python 3 to develop backend. To work with backend, enter virtual environment first:

cd ./backend
rm -rf venv
python3 -m venv venv
source venv/bin/activate

1.1. How to install backend

pip3 install --upgrade -r requirements.txt

1.2. How to manage db

python3 manage.py db init
python3 manage.py db migrate
python3 manage.py db upgrade

You can use shell to modify db such as adding admin account

python3 manage.py shell

1.2. How to run backend

python3 appserver.py
 * Serving Flask app "GAME_API" (lazy loading)
 * Environment: production
   WARNING: Do not use the development server in a production environment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 638-165-501

2. Frontend

I'm using VueJS to develop frontend

2.1. How to install frontend

cd ./frontend/worldcup_prediction_game_spa
npm install

2.2. How to run frontend

npm run dev
 I  Your application is running here: http://localhost:8080

About

Prediction game for World Cup


Languages

Language:Vue 48.4%Language:Python 24.7%Language:JavaScript 24.4%Language:Shell 1.6%Language:HTML 0.6%Language:Mako 0.3%