Coder Social home page Coder Social logo

andrew-brad / dotnet-cqrs-microservice-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thirschel/dotnet-cqrs-microservice-template

0.0 1.0 0.0 24 KB

A .NET Core template for building a microservice using CQRS

Dockerfile 2.54% C# 97.46%

dotnet-cqrs-microservice-template's Introduction

CQRS Microservice Template

What is this?

This project acts as a dotnet cli custom template when using dotnet new. This will scaffold a new microservice with the following features:

Feature
.NET Core 3.1
Clean Architecture
CQRS
Docker File

Requirements

Requirement
.NET Core 3.1 SDK

Installation

  1. Clone this repo
  2. Install the template to your sdk dotnet new -i <PATH TO REPO>. This will create a new template for you to use: cqrs-ms.

Uninstalling

  1. dotnet new -u
    • This will produce output that looks like
    ...
    Templates:
      CQRS Microservice (cqrs-ms) C#
    Uninstall Command:
      dotnet new -u C:\dev\cqrs-ms
    ...
    
  2. Run the uninstall command for the cqrs-ms template

Upgrading

When upgrading, it is best practice to uninstall the template and then re-install after you have pulled the latest

Usage

Parameter Description
projectName -P Standard project name for the template. Used as prefix for all files and namespaces eg (ProjectName.Api)
repoName -r The name of the repository. In most cases will be the same value as Output
output -o The output directory. Defaults to the current directory. In most cases will be the same value as repoName

If -o is not supplied the project will be created in the current working directory

In most cases repoName (-r) and output (-o) will be the same. Due to the cli they needed to be different parameters

dotnet new cqrs-ms -P <PROJECT NAME> -R <REPO NAME>

dotnet-cqrs-microservice-template's People

Contributors

thirschel avatar

Watchers

 avatar

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.