Skip to content

aribeiro-cris/edward-scissorhands-salon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

Edward Scissorhands Salon: Java-PostgreSQL Backend, JavaScript-Frontend Integration

edward-in-salon

Summary

Java Backend: A Spring Boot application with models like Appointment, REST controllers for CRUD operations, and PostgreSQL database integration using Spring Data JPA.

JavaScript Frontend: HTML/CSS/JS interface with Fetch API for backend communication, enabling clients to book appointments via a form, integrate an AI image generator for hairstyle visualization, and display the salon location using the Google Maps API.

Backend (Java)

  • The program uses Java with Spring Boot framework.
  • It defines models such as Appointment to represent booking details like client name, phone number, type of service, day, and time slot.
  • Rest controllers are created to handle HTTP requests for booking appointments, retrieving booked appointments, updating appointments, and deleting appointments.
  • Data is stored in a PostgreSQL database using Spring Data JPA for persistence.

Frontend (JavaScript)

  • The frontend is built using HTML, CSS, and JavaScript.
  • It utilizes the Fetch API to communicate with the backend's RESTful endpoints.
  • Clients can input their booking details such as name, phone number, type of service, day, and time slot through a form on the webpage.
  • Upon submitting the form, a POST request is sent to the backend to save the appointment details in the database.
  • The frontend also integrates with an AI image generator API to allow clients to visualize their desired hairstyle.
  • Additionally, it utilizes the Google Maps API to display the location of Edward Scissorhands' hair salon.

Links to APIs

List of contributors

About

Java Fullstack project with REST API and Postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published