Skip to content

A simple crud for business management with Spring Boot and MongoDB with Kotlin

Notifications You must be signed in to change notification settings

gutogirardon/CompanyManagement

Repository files navigation

WIP: A simple Spring Boot MongoDB REST API CRUD with Kotlin.

Setup

1) Deploy MongoDB as a Container

    1. docker pull mongo
    1. docker run -d -p 27017-27019:27017-27019 --name mongodb mongo

To validate, if everything is OK, let’s run the following command:

  • docker ps

2) Dependencies

Gradle

  • implementation("org.springframework.boot:spring-boot-starter-web")
    implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
    

Maven

  •   !-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
       <dependency>
           <groupId>org.springframework.boot</groupId>
           <artifactId>spring-boot-starter-web</artifactId>
       </dependency>
       <- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-mongodb -->
       <dependency>
           <groupId>org.springframework.boot</groupId>
      	 <artifactId>spring-boot-starter-data-mongodb</artifactId>
       </dependency>
    

3) Documentation

http://localhost:8080/swagger-ui/index.html

About

A simple crud for business management with Spring Boot and MongoDB with Kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published