Skip to content

Christian-Schou/Dotnet-CRUD-Api

Repository files navigation


Christian Schou Logo
.NET CRUD API

This is a simple CRUD API for use in my tutorials. It contains a simple implementation of a CRUD service for products, that can easily be extended.

Featured Image .NET CRUD API

Key FeaturesHow To UseDownloadCreditsLicense

Key Features

  • Simple CRUD implementation
    • Super simple CRUD service implementation that can easily be extended.
  • Error Handler Middleware
    • Global Error Handler Middleware taking care of exceptions in the applicaiton, providing the client with a consistent response every time. This can easily be extended with custom exceptions.
  • Well documented Code (inline + wiki)
  • Automatic mapping
    • Automatic Mapping of DTOs to/from Domain Models using AutoMapper.
  • Database Integration using Entity Framework Core.
  • MediatR (CQRS)
    • Implementation of CQRS using MediatR. All controllers will consume the mediator to handle commands and queries.

How To Use

To clone and run this simple .NET Web API, you'll need Git and .NET SDK. From your command line:

# Clone this repository
$ git clone https://github.com/Tech-With-Christian/Dotnet-CRUD-Api.git

# Go into the repository
$ cd dotnet-crud-api

# Restore dependencies
$ dotnet restore

# Run the app
$ dotnet watch

Download

You can download the latest main version of this .NET CRUD API Demo for further development on Windows, macOS and Linux.

Credits

This software uses the following open source packages:

License

MIT License


christian-schou.dk  ·  GitHub @Christian-Schou  ·  Blog blog.christian-schou.dk

About

This is a simple Demo CRUD API for use in my tutorials. It contains a simple implementation of a CRUD service for products.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Languages