Skip to content

laxmanvijay/KeyVal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Projects

  • WebApi - this contains the main api and the relevant services
  • xUnit - unit testing

Requirements

  • CRUD api for key-value store. ✅
  • Unit tests, large data, error handling, etc. ✅

Optional

  • User authentication using a jwt.
  • Azure deploy using app service.

Project structure

  • Controllers - which is the place for the rest apis.
  • Services - which is the interface for mongodb
  • Models - which will contain the models for representing mongo objects.
  • Exceptions - which will contain in app custom exceptions
  • Dto - which is the transfer objects from/to the controller.
  • Settings - which is the typed objects for appsettings.json
  • Helpers - which contains helpers

How to run?

  • Clone the entire solution
  • Ensure dotnet cli is installed
  • Add Connection strings for mongo db.
  • Create a db in mongo atlas and add the connection string in appsettings.json.
  • The DatabaseName and CollectionName can be any string.
  • Use the following command to run the project: (cd into the api project)
dotnet run
dotnet test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages