Skip to content

code-sumedh/app-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

===========================================================

Employee Registration Project with Spring boot CRUD Rest Api with MongoDB


Following Methods available:
1.  GET /api/employees -  Get all employee details
2.  GET /api/employees/get-emp/{id} - Get specific employee detail.
3.  POST /api/employees with data - Add New Employee to MongoDB
4.  PATCH /api/employees with data- Update existing employee
5.  DELETE /api/employees/delete-emp/{id} - Remove employee details from MongoDB.

# Prequisites
1.  Have Maven downloded and is in Path.
2.  Java 8
3.  MongoDB Installled.

# How to run this sample
1.  Download and extract this project.
2.  Start MongoDB with 
    ```
    mongod --dbpath data_directory_path
    ```
3.  Change your MongoDb configuration in src/java/resource/application.properties
4.  Go to CMD and run 
    mvn clean install
    ```

This is a Spring Boot project, so you can deploy it by simply using the main class: `SocGenApplication.java`
    ```
5.  Go to browser type http://localhost:8080/api/employees

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages