Skip to content

Full-stack World Cup Bet web app made with NextJS and Flask

Notifications You must be signed in to change notification settings

MrsBolinhu/bet-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The App

1. Description

World Cup BetApp project for software engineer class (dcc072), a web application made with NEXTJS and FLASK. This program supports two kinds of users: gamblers and one administrator. In general, gamblers can make bets and compare score with other users in a rank. The administrator is responsible for the registration of the match real results. There also are other features like delete bets and change username.


Gamblers



Administrator



2. How to run

Environment setup

You'll need some packages in your machine to be able to run this project. You can install using the commands below:

sudo apt install python3.10-venv
sudo apt install nodejs
sudo apt install npm
npm install --global yarn

1° Step: Running the server (backend)

Open your terminal and switch to the project directory. Then, inside flask-backend folder, run the following commands:

python3 -m venv venv
source venv/bin/activate
pip install Flask

This is going to download all the files required by Flask to run the project locally.

Now, to start the server all you need is:

python3 app.py

2° Step: Running the client (frontend)

In another terminal, open the next-frontend folder. Install all the node packages using:

yarn

And finally, to run the frontend use:

yarn dev

That's it! Let's gooo