Skip to content
Taveras Solutions · Go to home
Book a diagnostic

MITJavaScript / Python

ToDo-FastApi-React

A to-do list with React on the frontend and FastAPI on the backend.

It lets you create tasks, mark them done, and see them update instantly. It works as a reference for splitting the interface and the API into two apps.

Stars
2
Forks
1
Language
JavaScript / Python
License
MIT

THE PROBLEM

It shows with a minimal case how a decoupled frontend consumes an API to read, create, and update data.

Who it's for

Developers learning to connect a React frontend to a REST API.

WHAT IT DOES

  • Create new tasks.
  • Mark tasks as completed with one click.
  • A list that updates instantly, with state shared through React context.
  • Sort tasks through a query parameter to the API.

How it's built

  1. Interface React components (TaskForm, Task) styled with Tailwind and animated with framer-motion.
  2. State TaskContext holds the list and shares it across components.
  3. API api.js calls GET, POST, and PUT on /tasks/ of a FastAPI API at localhost:8000.

Stack

JavaScriptReactFastAPITailwind

Getting started

npm install
npm start  # open http://localhost:3000
Start the FastAPI API separately with uvicorn main:app --reload (the backend is not in this repo)

Need something like this built for you?

We use these same tools in our client projects.