Skip to content

Protages/gdb_backend

Repository files navigation

Game DataBase

Backend application for a game project.

Stack

  • FastAPI
  • SQLAlchemy
  • Alembic
  • Celery
  • Redis
  • python-jose
  • passlib
  • Authorization on JWT token

Installation

git clone https://github.com/Protages/gdb_backend

Create venv and activate it

python -m venv env
.\env\Scripts\activate

Install the dependencies and launch the unicorn server

pip install -r requirements.txt
uvicorn src.main:app --reload

Run Redis on docker

docker run -p 127.0.0.1:16379:6379 --name my-redis -d redis

Run Celery on Unix

celery -A src.core.celery.celery worker --loglevel=INFO

Or run Celery on Windows

celery -A src.core.celery.celery worker --loglevel=INFO --pool=solo

Run tests

Run integration tests

pytest ./tests/endpoints/ --verbosity=2 --order-group-scope=module

Run migration tests

pytest ./tests/migrations/ --verbosity 2

About

You can register and start rating interesting games. If desired, you can write a review of the game. The user can create their own categories and put specific games in them (e.g. the categories 'Passed' or 'Will pass').

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages