English | 日本語
A Todo app with a React (TypeScript) frontend and a Spring Boot REST API.
The frontend and backend live together in this repository under frontend/ and backend/.
| Stack | |
|---|---|
| frontend | React / React Router 6 / TypeScript / Create React App / MUI |
| backend | Spring Boot 3.2 / Java 17 / Spring Data JPA / MySQL |
| Method | Path | Description |
|---|---|---|
| GET | /task/getAll |
List tasks |
| GET | /task/get/{id} |
Get a task |
| POST | /task/add |
Create a task |
| PUT | /task/update/{id} |
Update a task |
| DELETE | /task/delete/{id} |
Delete a task |
Create a MySQL database named springboot_react and pass the connection settings as environment variables
(DB_URL and DB_USERNAME default to jdbc:mysql://localhost/springboot_react and root).
# backend (http://localhost:8080)
cd backend
export DB_PASSWORD=<your MySQL password>
./mvnw spring-boot:run
# frontend (http://localhost:3000)
cd frontend
npm install
npm startThis project started as separate -Frontend / -Backend repositories tied together with git submodules.
They were merged with git subtree, so the commit history from that period is preserved here.
