Task Manager is a simple to-do list app built using FastAPI and Rocketry. It allows users to create, update, and delete tasks as well as receive notifications for their tasks. The app also includes an authentication route with user sign up and login endpoints.
Link to docs: Task-Manager docs
The authentication route allows users to sign up and log in to the app.
The following endpoints are available:
- Sign up endpoint
POST auth/sign-up
-- Request example :
curl -X 'POST' \
'https://task-manager-bvue.onrender.com/auth/sign-up' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"username": "guy",
"password": "<your_password>",
"email": "guy@gmail.com"
}'
- Log in endpoint
The endpoint will authenticate the user and return a JWT token that can be used to access the Todos route.
POST auth/log-in
-- Request example :
curl -X 'POST' \
'https://task-manager-bvue.onrender.com/auth/log-in' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"username": "johndoe",
"password": "<your_password>"
}'
The Todos route allows users to create, update, and delete tasks as well as receive notifications for their tasks.
The following endpoints are available:
To run the app locally, follow these steps:
- Clone the repository to your local machine
git clone https://github.com/Lftobs/Task-Manager.git
- Navigate to the project directory
cd Task-Manager
- Install the project dependencies
pip install -r requirements.txt
- Add the necessary environment variables
- Run the application
uvicorn main:app --reload
Note: For security purposes, it is recommended to configure a secure secret key for your app and update the SECRET_KEY value in the .env file.