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.txtfile
$ pip install -r requirements.txt - Create a
.envfile and add yourJWT_SECRET_KEYvariable
The unit tests are available in the
src/testsfolder.
$ pytest $ cd src && python main.pyThe 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!