https://github.com/vlada-pv/fastapi-project-bookstore
The application written in FastApi is a platform for selling and buying books.
https://github.com/vlada-pv/fastapi-project-bookstore
docker fastapi poetry testing
Last synced: about 2 months ago
JSON representation
The application written in FastApi is a platform for selling and buying books.
- Host: GitHub
- URL: https://github.com/vlada-pv/fastapi-project-bookstore
- Owner: vlada-pv
- Created: 2024-03-15T14:27:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-02T12:01:46.000Z (about 2 years ago)
- Last Synced: 2025-03-15T22:31:48.420Z (over 1 year ago)
- Topics: docker, fastapi, poetry, testing
- Language: Python
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Book Selling Platform Announcement
The application written in FastApi is a platform for selling and buying books.
## Useful Information
A **Makefile** with useful commands has been added to the repository. The commands are called in the console in this way:
```shell
make linters
make install_reqs
```
## Application Launch
Commands are executed in the console:
1. Copy project. Start work with changing file .env.example to .env
2. Deploying Postgres DB in a docker container
```shell
make up_compose
```
3. Installing dependencies for the FastAPI server
```shell
make install_reqs
```
4. Starting the FastAPI server
```shell
uvicorn src.main:app --reload
```
## Project Structure
For convenience and adherence to the principles of clean architecture, the project is divided into the following packages:
- `configurations` — layer for storing configurations, constants, parameters, and project settings
- `models` — layer for storing models (ORM or Data Classes)
- `routers` — layer for setting URLs for different endpoints
- `schemas` — layer containing pydantic schemes, responsible for serialization and validation