Skip to content

Task management API built with FastAPI and JWT authentication

Notifications You must be signed in to change notification settings

antoprince001/fastapi-jwt-todo-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo API - FastAPI + JWT Auth

Steps to run locally

  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the FastAPI server using Uvicorn:
uvicorn main:app --reload

Steps to run via Docker

  1. Build the Docker image:
docker build -t fastapi_todo .
  1. Run the Docker container:
docker run -d --name fast_api_container -p 8080:8080 \
-e secret_key=<test_key> \
-e test_hashed_password='<demo_user_hashed_pwd>' \
fastapi_todo

Replace <test_key> with your secret key and <demo_user_hashed_pwd> with the hashed password for the demo user.

Note: Ensure Docker is installed on your system before running the Docker commands.

About

Task management API built with FastAPI and JWT authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published