simple phonebook api with FastAPI
this project assumes that user can create a contact and each contact can have several numbers as you can see in picture:
first install openJDK : sudo apt install openjdk-11-jdk
then
to use plantUML, use java -jar plantuml.jar uml.txt
- sqlAlchemy
- behave
- behave tutorial
- good explanation of behave
- plantUML docs
- gherkin docs
- fastapi with docker
in order to use docker, you can build this project using docker build command:
docker build -t <what_ever_name_you_want> .
after building our image is done, you can run a container using our brand-new image by this command:
docker run -d --name <container_name> -p 8080:80 <what_ever_name_you_want>
then you can see the running container in http://127.0.0.0.1:8080/docs
that's it! :D
i've decided to use keycloak as user base since it handles all stuff related to users and auth and authorization.
here are some github stuff i found:
you need to use keycloak docker
