A robust web application built with FastAPI, PostgreSQL, and SQLAlchemy, featuring comprehensive database migrations and modern Python development practices.
- FastAPI backend
- PostgreSQL database integration
- SQLAlchemy ORM
- Alembic database migrations
- Comprehensive GitHub Actions workflows
- CodeQL security analysis
- Python 3.11
- FastAPI
- PostgreSQL
- SQLAlchemy
- Alembic
- GitHub Actions
- Docker (optional)
- Python 3.11+
- PostgreSQL
- pip
git clone https://github.com/augsmachado/fastapi-postgres.git
cd fastapi-postgres
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
# Configure your database connection in .env or environment variables
alembic upgrade head
uvicorn main:app --reload
pytest
- CodeQL analysis integrated
- Dependabot for dependency updates
- Regular security scans
# Create a new migration
alembic revision --autogenerate -m "Description of changes"
# Apply migrations
alembic upgrade head
Feel free to submit issues or pull requests for improvements or bug fixes. Use the framework below:
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
This project is licensed under the Apache License 2.0. See the LICENSE file for details.