Skip to content

Task-manager is an API built using fastapi, postgresql, rocketry and hosted on render.

Notifications You must be signed in to change notification settings

Lftobs/Task-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager

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

Authentication Route

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>"
}'

Todos Route

The Todos route allows users to create, update, and delete tasks as well as receive notifications for their tasks.

The following endpoints are available:

Tools

Git RenderJWT FastAPI Postgres Debian Python GitHub

Running the App Locally

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.

About

Task-manager is an API built using fastapi, postgresql, rocketry and hosted on render.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published