- Authentication & Authorization
- JWT
- Login/Register
- CRUD operation on ToDos
- Dockerized
- Using Alembic as migration tool
- Using Poetry
-
Clone the repository
git clone https://github.com/Aron-S-G-H/fastapi-fullstack-todo.git
then...
cd fastapi-fullstack-todo
-
Create and activate a virtual environment
python3 -m venv venv
orvirtualenv venv
then...
source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
orpoetry install
-
Setup DB
alembic upgrade head
-
Start the app
python3 main.py
oruvicorn settings:main --host 0.0.0.0 --port 8000
orpoetry run python3 main.py
-
Clone the repository
git clone https://github.com/Aron-S-G-H/fastapi-fullstack-todo.git
then...
cd fastapi-fullstack-todo
-
Create an image
docker build -t todoapp:latest --no-cache .
-
Run a container
docker run --name todoApp -p 8000:8000 -d todoapp:latest
Note : If you encounter the error 'ERROR: Exception TimeoutError: timed out' or something strange while creating the image, go to the Dockerfile and either remove or comment out line 27. Then, try building the image again.
http://127.0.0.1:8000/docs
or http://127.0.0.1:8000/redoc