The application demonstrates the REST API using Spring boot and MongoDB. The application demonstrates all the database operations like Create, Read, Update and Delete.
- Spring boot 2.1.2
- MongoDB
- Eclipse Oxygen
- Java1.8
Note: I am using mLab for MongoDB database
- Clone the application
git clone https://github.com/scbushan05/spring-boot-mongodb.git
- Build and run the backend app using maven
cd spring-boot-mongodb-rest-api
mvn package
java -jar target/spring-boot-mongodb-rest-api-0.0.1-SNAPSHOT.jar
Alternatively, you can run the app without packaging it using -
mvn spring-boot:run
The backend server will start at http://localhost:8080.