Mini API for CRUD Bank Account Bank
├── main.py # Main File, consist of FastAPI App and Logic
├── requirements.txt # Requirements Package
├── README.md # This File
├── Database/ # Database Folder
├── ├── database.py # Database Connection and Model
├── ├── schemas.py # Pydantic Schema
├── ├── docker-compose.yml # Docker Compose File for Postgres and PgAdmin
- Python 3.6^
- FastAPI
- Uvicorn
- Docker
-
-
-
- Postman (Optional)
- Download and Install Python 3.6^
- Install Requirements Package
pip install -r requirements.txt
- Install Docker
- Install Docker Compose
- Pull Postgres Docker Image
- Pull PgAdmin Docker Image
docker pull dpage/pgadmin4
- Run docker-compose
cd Database
docker-compose up -d
cd ..
- Create Database
- Open PgAdmin on
http://localhost:5050
- Login with email
admin@admin.com
and password admin
- Create Database with name "sanberhub_pyjun"
- Run Uvicorn
uvicorn main:app --reload
- Open API Docs on
http://localhost:8000/docs
- Enjoy, you can try to test the API with Postman