Skip to content

Ashwinipinki/BookMyDoctorSpringBootMVC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Book My Doctor - A Clinic Appointment Management System]

Please go through my all projects here https://github.com/kshivakumar27

Getting started

Prerequisites:

  • Java 16
  • Maven
  • MySQL
  • Your preferred IDE (Eclipse/ Spring Tool Suite/ IntelliJ)

Running BookMyDoctor locally

BookMyDoctor is a Spring Boot application built using Maven. You can build a jar file and run it from the command line:

git clone https://github.com/kshivakumar27/BookMyDoctorSpringBootMVC.git
cd BookMyDoctor
./mvnw package
java -jar target/*.jar

You can then access BookMyDoctor here: http://localhost:8081/

Or you can run it from Maven directly using the Spring Boot Maven plugin. If you do this it will pick up changes that you make in the project immediately (changes to Java source files require a compile as well - most people use an IDE for this):

./mvnw spring-boot:run

NOTE: Windows users should set git config core.autocrlf true to avoid format assertions failing the build (use --global to set that flag globally).

Database configuration

In its default configuration, BookMyDoctor uses a MySQL database which doesn't get populated automatically with data. To populte the database, import data from BookMyDoctordump folder

You could start MySql locally with whatever installer works for your OS, or with docker:

Steps:

  1. On the command line

    git clone https://github.com/kshivakumar27/BookMyDoctorSpringBootMVC.git
    
  2. Inside Eclipse or STS

    File -> Import -> Maven -> Existing Maven project
    

    Then either build on the command line ./mvnw generate-resources or using the Eclipse launcher (right click on project and Run As -> Maven install) to generate the css. Run the application main method by right clicking on it and choosing Run As -> Java Application.

  3. Inside IntelliJ IDEA In the main menu, choose File -> Open and select the BookMyDoctor pom.xml. Click on the Open button.

    CSS files are generated from the Maven build. You can either build them on the command line ./mvnw generate-resources or right click on the BookMyDoctor project then Maven -> Generates sources and Update Folders.

    A run configuration named BookMyDoctorApplication should have been created for you if you're using a recent Ultimate version. Otherwise, run the application by right clicking on the BookMyDoctorApplication main class and choosing Run 'BookMyDoctorApplication'.

  4. Navigate to BookMyDoctor

    Visit http://localhost:8081 in your browser.

About

Java spring boot mvc project internship

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 62.4%
  • HTML 31.0%
  • JavaScript 6.4%
  • CSS 0.2%