A blog API that handles basic CRUD operations on users, posts, and likes.
- Python
- FastAPI
- PostgreSQL
- Swagger
- Postman
Install with pip:
$ pip install -r requirements.txt
Create a .env
file with these configurations:
DATABASE_HOSTNAME=...
DATABASE_PORT=...
DATABASE_PASSWORD=...
DATABASE_NAME=...
DATABASE_USERNAME=...
SECRET_KEY=...
ALGORITHM=...
ACCESS_TOKEN_EXPIRES_MINUTES=...
uvicorn app.main:app --reload
Default port is http://127.0.0.1:8000