8000 GitHub - e-kondr01/demo_lms_service_c
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

e-kondr01/demo_lms_service_c

Repository files navigation

Service C

Python version

3.12

Local

Installation

FastAPI app

  1. Create venv
python3.12 -m venv .venv
  1. Activate venv
source .venv/bin/activate
  1. Install requirements
pip install -r app/requirements/local.txt
  1. Copy .env
cp app/app/local.example.env app/app/.env

Docker and Docker compose

Refer to:

https://docs.docker.com/engine/install/

Usage

Use the script to start PSQL, PGAdmin in Docker Compose, apply migrations and run uvicorn:

make local

Migrations

Powered by Alembic

make migrations

Swagger Docs

Go to http://127.0.0.1:8000/api/docs after running server

Development

During development use Black formatter, Pylint, Flake8 and MyPy.

Prod

Installation

Copy .env:

cp app/app/production.example.env app/app/.env

Deploy

Use shortcut script:

make up
5CA1

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0