Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kreipikc/fastapi-book-async
A simple API with 5 endpoints (CRUD) written in FastAPI (works asynchronously), using PostgreSQL, Redis and Docker
https://github.com/kreipikc/fastapi-book-async
api async crud docker fastapi orm postgresql pydantic python redis sqlalchemy
Last synced: 24 days ago
JSON representation
A simple API with 5 endpoints (CRUD) written in FastAPI (works asynchronously), using PostgreSQL, Redis and Docker
- Host: GitHub
- URL: https://github.com/kreipikc/fastapi-book-async
- Owner: kreipikc
- Created: 2024-11-28T16:06:07.000Z (28 days ago)
- Default Branch: master
- Last Pushed: 2024-12-02T21:42:26.000Z (24 days ago)
- Last Synced: 2024-12-02T22:31:29.600Z (24 days ago)
- Topics: api, async, crud, docker, fastapi, orm, postgresql, pydantic, python, redis, sqlalchemy
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What kind of project is this?
This is an API with 5 endpoints.## What technologies have I used?
- Python
- FastAPI
- SQLAlchemy
- Pydantic
- PostgreSQL
- Redis
- Docker## Why did I even start creating this project?
This is a project created to study FastAPI.## How usage?
For start project `uvicorn app.main:app --reload`You can send requests:
- **GET** `/books/` - all info;
- **POST** `/books/` - add new book;
- **GET** `/books/id_book` - info about a specific book;
- **PUT** `/books/id_book` - update info about a specific book;
- **DELETE** `/books/id_book` - delete info about a specific book.You can also use `/docs` to check the sending of requests, where all the endpoints will be
## How usage Docker?
1. Download git and docker to your server
2. Clone the entire project from the github - `git clone `
3. Then use docker-compose to run the project - `docker-compose up`