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.
- Create a REST APIs using Spring Boot.
- Create a connection of Spring Boot with mondoDB for CRUD applications with Spring Data mongoDB.
- Create Customized Exception Handling for some operations for providing specific Exception handling.
- 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.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- 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
- Open the installed file on your favourite IDE. I used Intellij IDEA
- Install MongoDB on your laptop with mongoDB installation according to your Operating System.
- Create a Directory at a place and add empty data directory inside the Directory You Created.
- Open the terminal or CMD(windows) and open the root of the created directory.
- 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
- Create a database name ServerDB using mongoDB cli or MongoDB Compass Community
- Run the Spring Boot Server and you would get output as below
- Test the REST APIs using Postman. I have provided an API Collection for all the operations for postman with Operations
Please CheckOut the updated versions for this project