Skip to content

jesmith17/MS0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MS0

Set of code assets for SA's to use when deliverying an MSO.

Demo Purposes Only

The code contained in this repository is intended simply to help boostrap the MongoDB Spring Zero process. The code works. but is NOT PRODUCTION READY and is not intended to be.

MongoDB Sprint Zero is about helping your customers

  • Quickly start consuming credits
  • Be able to maintain momentum in their development and buying process
  • Help them have something to demonstrate the value at the end of the Sprint

By creating code assets in the customer native language, we are able to accelerate past some of those bootstrap concepts and get the developers working directly with the data in a meaningful way which will increase their knowledge, likelihood of success, and stickiness factor with MongoDB.

How to Use

  1. Clone the Repo down to your local machine
  2. Identify which sample project is the best fit for your client
  3. Make any necessary pro-active changes. This includes potentially
    • Adding in customer business objects based on your clients needs
    • CSFLE configuration if that's critical for your customer
    • Creating new sample data records
  4. Zip up the resulting folders to be able to share with the customer

Note: The contents of this repo should not be shared directly with the customer. We want to be able to correctly share the caveats above when we present this to customers.

Organization

At the top level you have shared assets, including

  • sample-data folder that contains some mgenerate compliant JSON scripts for creating fake customers
  • java-sample - Java project that uses the native MongoDB Java Driver to connect
  • spring-data - Java project using the Spring-boot and Spring-data packages to access the DB
  • dotnet-sample - C# and .Net CORE webapi that connects to the DB using the native MongoDB driver

All of the project use essentially the same concept.

Project Structure

Controller

Some level of Controller class that exposes a REST API for @ /customer for the teams to access via a tool like Postman. This isn't directly related to the DB, but does make the entire project feel more real and will simplify their work to create a demonstrable prototype.

Service

A package for service classes that can contain any business logic that the cusotmer would perform. This is merely there to try to show some best practices for how to create a project.

DAO / Repository

This layer can have multiple names, but represents the data access layer of the project. .Net and Spring-Data will tend to use the repository pattern.

Content

Each project use the same example for a Customer object. This allows you to take the same sample-data and reuse it in any concept.

The intent is to create a simple object that can start to demonstrate the benefits of the document model. If your customer gave you specific business objects that they want to use, then replace the default Customer object with the ones provided by your customer. Their objects should always take precedence.

The default is simply there to give you a fully connected starting place with working examples of a query, an insert, and an aggregation query.

About

Set of code examples for MS0 activities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published