Skip to content

avpai-dinosaur/leetcodeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build and Run

First activate your python virtual environment

source env/bin/activate

If you don't have a virtual environment create one with

python3 -m venv env

Install dependencies (make sure your virtual environemnt is activated!)

pip install -r requirements.txt

Run with

cd game
python3 main.py

Leaderboard

Run leaderboard locally with

cd leaderboard
flask --app leaderboard.py run

API

Submit a new score with

curl -X POST http://localhost:5000/api/upload/ -F "username=[user name here]" -F "score=[score here]"

Get board in json with

curl -X GET http://localhost:5000/api/board/

Database

Initialize database with

bin/db create

Reset databse with

bin/db reset

See all values in database with

bin/db dump

Delete databse with

bin/db destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published