Coder Social home page Coder Social logo

dotnet-accelerator's Introduction

Quickstart

Run .\build.cmd init or .\build.sh init to setup local environment.

Build

The project is instrumented with common set of tasks implemented as targets via Nuke.Build. These can be invoked via entry point helper script build.cmd (or one of the other extensions based on terminal of choice).

.\build.cmd <TARGET_NAME> --my-arg=<value>...

Common targets:

  • init - initializes git repo, sets up versioning, and restores necessary cli tools. Installs .NET SDK if it's missing
  • compile - compile the project
  • publish - .net publish the project, and package output into version stamped zip files into artifacts folder
  • clean - clear out bin,obj, and artifacts folders

Additional build targets can be easily added by editing /build/Build.cs

Branching and Versioning

The code uses GitFlow for branching and release workflow.

Latest active branch developers commit to is develop, while main represents current production code. Release branches are created during stabilization phase, and represent next release being reading to be shipped to production.

Versioning is derived from Git commit history using Nerdbank.Gitversioning. Current version can be obtained by running

dotnet nbgv get-version

When the team is ready to start preparing next release, they cut a release branch from the develop branch. Release branch carries stabilization fixes for next release cycle, while develop increments next major version number and starts accumulating new features.

Cutting a release branch can be done by issuing this command:

.\build.ps1 prepare-release

Prereleases

Builds created out of different branches will have the pre-release tags applied automatically to their version numbers:

develop: <semver>-alpha

v.X.X: <semver>-beta

main: <semver>

any other: <semver>-<short-sha>

Creating production release

At the end of stabilization cycle when the release is made. The following steps should be performed:

  • switch to release branch (ex. v2.0)
  • edit version.json and change the version property to remove the beta tag
  • commit
  • merge release branch into master

Config server

Config server allows configuration to be loaded from a dedicated service that is backed by one or more configuration sources. The default configuration source is git, allowing configuration changes to be stored in git, but loaded without having to redeploy the app.

Config Server

The configuration is stored inside /config folder in the repository. You can launch config server locally via docker-compose from inside services folder vas following:

services> docker-compose up configserver

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.