Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
/ game_records Public archive

This project manages player registrations, their games, and game results

Notifications You must be signed in to change notification settings

mrgick/game_records

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game records

University project on the subject "Methods and means of designing information systems and technologies".

About

This project implements the registration of players and their games and the results of games played.

Also, this project is designed for only one person - administrator.

Based on MVT (MVC) with asynchronous python 3.11 and libraries: FastApi, SqlAlchemy and Jinja2. Tests wrote on PyTest with plugin AnyIO for asynchronous.

How to run

Using docker

  • Build
docker build -t game_records .
  • Run (sqlite database will be in memory)
docker run -e DB_URL="sqlite+aiosqlite://" -p 80:80 game_records

Now you can access web on localhost

Manually

  • Install python 3.11
  • Clone game_records from github
git clone https://github.com/mrgick/game_records.git
  • Open directory game_records
cd game_records
  • Create python virtual env
python -m venv venv
  • Activate it

On Linux/MacOS

. venv/bin/activate

On Windows

source venv/scripts/activate
  • Install requirements
pip install -r requirements.txt
  • Create .env file (just copy .env_example)
DB_URL="sqlite+aiosqlite:///game_records.db"
  • Run web server
python -m uvicorn app.main:app --port 8000

Now you can access web on localhost:8000

Tests

To run tests do guide "Manually" in "How to run" and then type in terminal

python -m pytest tests

About

This project manages player registrations, their games, and game results

Resources

Stars

Watchers

Forks