Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alina1412/fastapi_tests
fastapi project for tests (quiz) handlers
https://github.com/alina1412/fastapi_tests
alembic docker docker-compose fastapi make poetry postgres python sqlalchemy
Last synced: 18 days ago
JSON representation
fastapi project for tests (quiz) handlers
- Host: GitHub
- URL: https://github.com/alina1412/fastapi_tests
- Owner: alina1412
- Created: 2024-08-30T06:06:38.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-12-12T13:07:15.000Z (24 days ago)
- Last Synced: 2024-12-12T13:31:29.894Z (24 days ago)
- Topics: alembic, docker, docker-compose, fastapi, make, poetry, postgres, python, sqlalchemy
- Language: Python
- Homepage:
- Size: 340 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
**About**\
app FastApi (in progress)\
project for handling with tests (quiz):\
-handlers for adding questions and answers (it can be several correct answers for one question)\
-handlers for getting info of tests (quiz)\
-handler for checking answer with correct answers**Stack**\
FastApi, sqlalchemy, docker, postgres, poetry, pytest**Installation**
-creating virtual environment, .env\
```poetry install```creating postgres from docker-compose:
```
make up
poetry run alembic -c alembic.ini revision --autogenerate
poetry run alembic -c alembic.ini upgrade head
```running using poetry and make:
`make run`
http://localhost:8000/docs
Notes (not needed):\
enter docker container (why?):
-docker exec -it 47dece677d93 bashin host console:
-psql -h 127.0.0.1 -p 5433 -U user postgres
alembic (if from scratch):
```
alembic init -t async migration
alembic revision --autogenerate -m 'initial'
```