Skip to content

This GitHub repository contains a Model-View-Controller (MVC) application built using the Spring Boot framework. The application allows you to perform various operations on an employee database, including viewing the employees list, adding new employees, editing employee details, and deleting existing employees.

License

Notifications You must be signed in to change notification settings

revanthkalagudi/employee-management-mvc-spring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

MVC App with Spring Boot Framework

Employee Management Application Using Spring

This GitHub repository contains a Model-View-Controller (MVC) application built using the Spring Boot framework. The application allows you to perform various operations on an employee database, including viewing the employees list, adding new employees, editing employee details, and deleting existing employees.

Features View employees list: Get a comprehensive list of all employees in the database. Add new employee: Add a new employee with their details to the database. Edit employee details: Update the information of an existing employee. Delete employee: Remove an employee from the database.

Requirements

  1. IntelliJ IDEA (Ultimate Version) Install
  2. MySQL Workbench Install

Downloading and Running the MVC Application

Follow these step-by-step instructions to download and run the MVC application on IntelliJ IDEA and MySQL Workbench:

  1. Download the ZIP: Go to the GitHub repository page and click on the "Code" button. From the dropdown menu, select "Download ZIP." This will download a compressed ZIP file containing the repository code to your local machine.

  2. Extract the ZIP File: Once the ZIP file is downloaded, extract its contents to a desired location on your computer. You can use any extraction tool, such as WinRAR or 7-Zip, to extract the files.

  3. Import the Project: Launch IntelliJ IDEA and select "Open" from the welcome screen. Navigate to the location where you cloned the repository and choose the project's root directory. Click "Open" to import the project.

  4. Configure the Database: Before running the application, ensure that you have MySQL Server installed and running on your machine. Open MySQL Workbench and create a new database with a suitable name for your application. The database name that you use here should be the same as the database name that you provide in applications.properties file(Check Step 6).

  5. Update Application Configuration: In the project, locate the application.properties file. Open it and update the following properties according to your MySQL configuration:

# Database Configuration
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/<database_name>?useSSL=false&serverTimezone=UTC
spring.datasource.username=<database_username>
spring.datasource.password=<database_password>

# Thymeleaf Configuration
spring.thymeleaf.cache=false

# JPA Configuration
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update

# Server Configuration
server.port=8080

Replace <database_name>, <database_username>, and <database_password> (remove the angular brackets(<>)) with your database's name, username, and password respectively.

  1. Build the Project: Build the project in IntelliJ IDEA by selecting "Build" from the top menu and then choosing "Build Project." Ensure that the build process completes successfully without any errors.

  2. Run the Application: Run the application by right-clicking on the main class file (typically named Application or Application.java) and selecting "Run" from the context menu. Alternatively, you can use the "Run" button located in the toolbar.

  3. Access the Application: Once the application is running, open your web browser and navigate to http://localhost:8080. You should see the home page of the MVC application.

Congratulations! You have successfully downloaded and run the MVC application on IntelliJ IDEA and MySQL Workbench. Feel free to explore the code and make any necessary modifications to suit your requirements.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

This GitHub repository contains a Model-View-Controller (MVC) application built using the Spring Boot framework. The application allows you to perform various operations on an employee database, including viewing the employees list, adding new employees, editing employee details, and deleting existing employees.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published