Skip to content

ACalderwood93/BoilerPlate.Core.API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BoilerPlate.Core.API

This is a project for a boiler plate .net Core 3 API with a Mongo DB database that is self documenting via Swagger / SwaggerUI

Mongo DB can be accessed through the ICollectionRepository Interface and the GetCollection<T> method within that.

A default Query class and repository have been included for a very basic Products collection. The same logic used in those could be implemented for any collection to provide basic CRUD functionality.

Patterns

The design pattern used in this boiler plate is Repository due to the simplicity. It could be modified to use CQRS and event based design for a data layer.

Settings

The app.settings.json file provided in the repo will provide the correct format and default values for running MongoDb locally. If you are hosting Mongo via Atlas this connection string should be updated.

Auto Mapper

The project uses AutoMapper to handle all object mapping, the configuration for this can be found in WebAPI -> Configs -> AutoMapperConfig.cs

About

A Boiler plate .Net core Web API (V3) with swagger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages