Skip to content

This repository explains how to work with SpringBoot and MongoDB locally and in cloud without any code change

Notifications You must be signed in to change notification settings

gouravsood/SpringBootMongoDBCloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBootMongoDBCloud

What is this repository for?

How do I get set up?

  • Summary of set up

    • List of software to be installed:
      • Install Java (JDK 1.8)
      • Install Maven
      • Install GIT
    • Steps to setup the project:
      • Clone the repo
      $ git clone https://github.com/gouravsood/SpringBootMongoDBCloud.git
      • Go into the project folder
      $ cd SpringBootMongoDBCloud
      • build the project (which will build the application in dev profile)
      $ mvn clean package
  • Database configuration

    • Database configuration is done using application.yml file under '\src\main\resources\config\application.yml'
    • For local database configuration, connections details are mentioned in: /src/main/resources/config/application.yml
    • For cloud database configuration, connections details are mentioned in: /src/main/resources/config/application-cloud.yml
    • Refer to below class to understand how local DB configurations are done: /src/main/java/sood/gourav/config/DatabaseConfiguration.java
    • Refer to below class to understand how Cloud DB configurations are done: /src/main/java/sood/gourav/config/CloudDatabaseConfiguration.java and /src/main/java/sood/gourav/config/CloudMongoDbConfiguration.java

Who do I talk to?

  • Repo owner or admin - Gourav Sood
  • Please feel free contact me at GitHub or my mail gouravsood@gmail.com

About

This repository explains how to work with SpringBoot and MongoDB locally and in cloud without any code change

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages