Skip to content

vardhmanhundia/SpringBootMongodb_serverIndexing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ServerIndexing_springBoot

ServerIndexing is a project created over Stack springBoot and Spring data MongoDB. The projects provides with multiple Rest API created by Spring Boot Web Pack. The project provides all the basic CRUD operations to mongoDB database with user accessible REST APIs. It also provides additional features like auto increment and muliple addition, deletion, updation over the database with one request.It also provides an Customized Exception Response for some operations which could be modified as per the need.

Primary Goals:

  1. Create a REST APIs using Spring Boot.
  2. Create a connection of Spring Boot with mondoDB for CRUD applications with Spring Data mongoDB.
  3. Create Customized Exception Handling for some operations for providing specific Exception handling.

Installation

  • The reference documentation includes detailed installation instructions as well as a comprehensive getting started guide for Spring Boot.
  • The reference documentation includes detailed instructions for mongoDB operations with Spring Boot and Spring Data MongoDB.
  • Install MongoDB on your laptop with mongoDB installation according to your Operating System.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

  1. Git clone the reposity with command or fork it to you repository and git clone to that repository:
  git clone https://github.com/vardhmanhundia/ServerIndexing_springBot.git
  1. Open the installed file on your favourite IDE. I used Intellij IDEA
  2. Install MongoDB on your laptop with mongoDB installation according to your Operating System.
  3. Create a Directory at a place and add empty data directory inside the Directory You Created.
  4. Open the terminal or CMD(windows) and open the root of the created directory.
  5. Initialize the mongoDB database with this folder which will initiate the mongoDB database at default address 127.0.0.1
  mongod --dbpath=data --bind_ip 127.0.0.1
  1. Create a database name ServerDB using mongoDB cli or MongoDB Compass Community
  2. Run the Spring Boot Server and you would get output as below

ServerRunning

  1. Test the REST APIs using Postman. I have provided an API Collection for all the operations for postman with Operations

Postman Request Example

Further Versions

Please CheckOut the updated versions for this project

About

Spring Boot and Mongodb Application for server indexing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages