A simple containerized Flask API and SQLite application to store users.
- Python3 installed along with PIP
- Docker installed
- Clone repo to your destination.
- Run build_and_test Bash script in your terminal
Docker will Build the two containers, one API and one SQLite. The script will also run a test hitting each of the endpoints. Lastly, the sript will tell user the API is live. You will be able to hit the API on http://localhost:8000/
You can interact with the API by making curl commands.
Health Checker
curl http://localhost:8000/api/healthchecker
Get Users
curl http://localhost:8000/users
Create User
curl --header "Content-Type: application/json" \
--request POST --data '{"name":"USER", "username":"USERNAME", "email":"USER@mail.com"}' \
http://localhost:8000/user
Update User
curl --header "Content-Type: application/json" \
--request PUT --data '{"id": 1, "name":"USER2", "username":"USERNAME2", "email":"USER@mail.com"}' \
http://localhost:8000/user
Delete User
curl --request DELETE http://localhost:8000/user/1
- Develop CD Pipeline with Github Actions
- This could be accomplished with deploying to an K8s Cluster or on an EC2 running Docker.
- Build out the Database with more complex tables