Skip to content

chillin9panda/Simple-Booking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Booking

Requires:

OpenJdk 23 (or change Java version in pom.xml)
MySQL
Maven (https://maven.apache.org/download.cgi)
Extract and add to path

To Run

  1. Log into MySQL as root from console
    mysql -u root -p
    Enter Password
  2. Create "simple_booking" Database
    CREATE DATABASE simple_booking;
  3. Create User "springuser" with password "7529"
    CREATE USER 'springuser'@'localhost' IDENTIFIED BY '7529';
  4. Manage Privileges
    GRANT ALL PRIVILEGES ON simple_booking.* TO 'springuser'@'localhost';
    FLUSH PRIVILEGES;
  5. To start server
    open terminal to /Simple-Booking/simpleBooking/ and run the following command:
    mvn spring-boot:run
  6. In a Web Browser go to localhost:8080
    If port 8080 is in use stop the running program or add to application.properties
    server.port = <port number>
    then go to localhost:<port number>

Add User to DB for authentication and Login

  1. Enter localhost:<port number>/addEmployee on the browser
  2. Go back to loacalhost:<port number>
  3. Login with username: emp001 and password: john001

About

Simple booking system with java spring boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published