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
- Interface React components (TaskForm, Task) styled with Tailwind and animated with framer-motion.
- State TaskContext holds the list and shares it across components.
- 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.
Other open source projects
- SaaS starter django-saas-boilerplate A Django 6 SaaS starter: email login, Stripe subscriptions, a dashboard, CSP, and 67 tests. Ready to deploy.
- AI invoicing InvoiceFlow AI invoicing for the Dominican Republic: OCR, DGII tax alerts (ITBIS, dates, 606 data), invoices over WhatsApp, and 606 exports.
- macOS app ModelNap A menu bar app that puts idle local Ollama models to sleep and gives your Mac its memory back. Signed and notarized.