Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.14 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.14 KB

###Spring boot mongodb demo

This program is written using the spring boot framework, which stores some basic data at the start of the program in the mongo database.

my website: https://alirezaalijani.ir

Goals
  • Start learning mongodb
  • Using spring data mongodb
  • Using mongo template & mongo client
  • Learning mongodb query
  • Mongodb Many to many & one to Many & ....

How to use

Project dependencies
 docker run -d -p 27017:27017 --name mongodb mongo
  • java 8 or higher

Run

  1. go to project folder
  2. start by spring-boot-maven-plugin
mvn spring-boot:run
  1. project start on port 8080 and you can see the console for crud actions4. use this
  2. command to create jar file
 mvn clean install
  1. end