FastAPI [](https://github.com/Anyaegbunam-Alexander/FASTAPI/actions/workflows/build-deploy.yml)
July 10, 2023 ยท View on GitHub
A blog API that handles basic CRUD operations on users, posts, and likes.
Built with:
- Python
- FastAPI
- PostgreSQL
- Swagger
- Postman
Installation
Install with pip:
$ pip install -r requirements.txt
Environment Configurations
Create a .env file with these configurations:
DATABASE_HOSTNAME=...
DATABASE_PORT=...
DATABASE_PASSWORD=...
DATABASE_NAME=...
DATABASE_USERNAME=...
SECRET_KEY=...
ALGORITHM=...
ACCESS_TOKEN_EXPIRES_MINUTES=...
Run
uvicorn app.main:app --reload
Default port is http://127.0.0.1:8000