This is the reference Github repository for my recent blog post on Master CI/CD Fundamentals using FastAPI, Github Actions, and Heroku
This is a simple CRUDL API using FastAPI for managing a user's bucket list. An SQLite database was used for persistence via an SQLAlchemy ORM. The primary objective of this repo is to help beginners learn CI/CD with Github actions, Heroku, and unit testing.
- Clone the Github repository
- Create a virtual environment
- Install the dependencies from the
requirements.txt
file
$ pip install -r requirements.txt
- Create a
.env
file and add yourJWT_SECRET_KEY
variable
The unit tests are available in the
src/tests
folder.
$ pytest
$ cd src && python main.py
The application can be accessed on http://localhost:5000
Go to http://localhost:5000/docs
Other necceary information can be found in the blog post, Thanks for Reading!