Skip to content

optiman917/java-react-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

BookStore CRUD System

  • This project is a BookStore CRUD system with a React-based single-page application (SPA) as the frontend, a Spring Boot application as the middleware, and a MySQL database as the data store. The system allows for creating, reading, updating, and deleting (CRUD) operations on Books and Authors with a many-to-many relationship.

Prerequisites

  • Node.js v20
  • OpenJDK 17
  • MySQL (v5 or higher)
  • Maven (for building the Spring Boot application)

Frontend Implementation (React with TailwindCSS)

  • Initialize the React application:

  • Install TailwindCSS and required dependencies:

  • Configure tailwind.config.js

  • Create Components and Pages

  • Create Author & Book Context

  • Implement Routing using 'react-router-dom'

Backend Implementation (Java, Spring Boot)

  • Initialize Spring Boot Application using Spring Initializr with some dependencies (Spring Web, Spring Data JPA, MySQL Driver)

  • Download and unzip the project.

  • Set up the application.properties file (database configuration)

Database Name: bookstore
  • Create Entity Models

  • Create DTOs

  • Create Repositories

  • Create Services

  • Create Controllers

  • Implement Exception Handling

  • Unit Testing with JUnit

Run the Application

  • Run the backend application:
cd backend
./mvn spring-boot:run
  • Run the frontend application:
cd frontend
npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published