A fully asynchronous Fast API service that provides the user with nickname options and the ability to add them to the PostgreSQL database. It has modern responsive interface and the dark theme.
- Python
- FastAPI
- Asyncio
- SQLAlchemy
- PostgreSQL
- Pytest
- Jinja2
- Bootstrap 5
- CSS
- Uvicorn
- Docker
- pep8
- flake8
- black
- pymarkdown
-
Clone the repository
-
To run on PostgreSQL instead of SQLite (default), put
.env
file intofastnames
folder with such content:POSTGRES_DB=db_name POSTGRES_USER=db_user POSTGRES_PASSWORD=db_pswd DB_PORT=5432 DATABASE_URL=postgresql+asyncpg://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres_db:${DB_PORT}/${POSTGRES_DB}
-
From the root folder run:
docker compose up
- Clone the project, activate virtual environment and install
dependencies from
fastnames/requirements.txt
file - To test the current functionality run
pytest
command