Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`