https://github.com/phaniteja5789/todolist_fastapi
This repository is an sample ToDoList application developed using FastAPI, HTML, JavaScript.
https://github.com/phaniteja5789/todolist_fastapi
fastapi fastapi-template html-css-javascript jinja2-templating-engine
Last synced: 8 days ago
JSON representation
This repository is an sample ToDoList application developed using FastAPI, HTML, JavaScript.
- Host: GitHub
- URL: https://github.com/phaniteja5789/todolist_fastapi
- Owner: phaniteja5789
- Created: 2023-05-28T06:15:06.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-28T07:26:58.000Z (almost 2 years ago)
- Last Synced: 2024-12-25T17:42:46.146Z (5 months ago)
- Topics: fastapi, fastapi-template, html-css-javascript, jinja2-templating-engine
- Language: Python
- Homepage:
- Size: 12.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TodoList_FastAPI
This repository is an sample ToDoList application developed using **FastAPI, HTML, JavaScript. **Installed Modules for this code :
**FastAPI,Python-multipart**
1.) pip install "FastApi[all]" ==> To Support FASTAPI calls
2.) pip install "python-multipart" ==> To handle FORM Data which will come as MultiPartThe startup screen will be as below screen.
User can be able to enter the task name of length 30 at maximum.
**UseCase-1**
1.) Once the user submits the task name,
2.) The request is sent as post method and carries the data of the task name entered.
3.) The corresponding POST request API call which was developed using FAST API will gets hit and it will add the task name to the list.
4.) The Post Request will Renders the HTML Response, with all the list of tasks.
The below is the screenshot of the **Usecase-1**

**UseCase-2**1.) Once user completes the task, the user can left click on the task name.
2.) Based on the click event the corresponding data will be sent using **FETCH API of Javascript** and hits the API developed using FAST API.
3.) Such that it will again render the template, with line-through on the task-name
The below is the screenshot of the **UseCase-2**

**UseCase-3**
1.) Once user wants to remove the task name enetered, the user can Right Click on the Task Name.
2.) The default Right Click will give the Context Menu and I have prevented the default Right Click Action
3.) Based on the right click event the corresponding data will be sent using FETCH API of JAVAScript and hits the API developed using FAST API.
4.) Such that it will again render the template, with the task name removed
The below is the screenshot of the **UseCase-3**

The application has been hosted on local hostThe command to run the application is - uvicorn sourcecode:app --reload
sourcecode ==> Name of the File where the app is initialized
--reload ==> To automatically reload the server based on the changes.