Coder Social home page Coder Social logo

michalmalujdy / _asp.netcore_mongodbdemo Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 97 KB

The project was created for personal development purpose to settle and improve knowledge about MongoDB and NoSQL databases in general. The main goal was to dive deeper into practical use of MongoDB.

C# 100.00%

_asp.netcore_mongodbdemo's Introduction

MongoDB Demo - Blog

Overview

The project was created for personal development purpose to settle and improve knowledge about MongoDB and NoSQL databases in general.

The main goal was to dive deeper into practical use of MongoDB. Because of that, the project was not and will not be production-ready.

The architecture of the application was Command Query Separation - the favorite and most common architecture used by the author.

The Data layer (in this case MongoDB) of the project was separated from others layers by the Repository Pattern.

Achieved Goals

  • Get hands on experience with MongoDB CLI
  • Get hands on experience with MongoDB .NET Driver
  • Configure MongoDB via .NET Driver
  • Implement basic CRUD operations
  • Implement pagination - GET /api/authors, GET api/posts
  • Implement search - GET /api/authors, GET api/posts
  • Implement One-To-Zero-Or-One relationship in NoSQL database - Author <-> Post
  • Implement One-To-Many relationship - Post <-> Comments
  • Implement strongly typed queries
  • Add indexes to the MongoDB for faster search - Author's FullNameUpperCased and Post's TitleUpperCased. Indexes was upper-cased in order to make search case-insensitive.
  • Establish per-request session with MongoDB
  • Setup external cluster in Mongo Atlas

Technology stack

  • API - ASP.NET Core 3.1
  • NoSQL database- MongoDB

Endpoints documentation with interactive demo

Swagger auto-generated documentation with fully interactive list of endpoints is available here.

In case the web service is down, here is the screen shoot:

Swagger documentation

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.