Skip to content

About

A full-stack Todo app with a React (TypeScript, MUI) frontend and a Spring Boot 3 REST API backend, using Spring Data JPA and MySQL. Frontend and backend in one repository.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React × Spring Boot Todo App

English | 日本語

Screenshot

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

API (backend)

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

Getting started

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 start

History

This 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.

About

A full-stack Todo app with a React (TypeScript, MUI) frontend and a Spring Boot 3 REST API backend, using Spring Data JPA and MySQL. Frontend and backend in one repository.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages