Skip to content

Starter project template for alt:V C# featuring .NET generic host, Marten DB and Vertical Slice Architecture.

Notifications You must be signed in to change notification settings

duydang2311/altv-community-csharp-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starter project for alt:V C#

The starter project provides a simple setup of .NET generic host, Marten database, a project structure inspired by Vertical Slice Architecture and some simple code examples.

Development

This project uses just (a command runner) for running some frequently used commands. I created a justfile with a set of default recipes.

But you don't have to use it. Feel free to use your favourite way to run commands/scripts.

Download or update alt:V server files

Execute update recipe using just:

just update

Build

Execute build recipe using just:

just build

Publish

Execute publish recipe using just. At this step, all output files will be copied to resources folder as configured in .csproj files.

just publish

This recipe also receives rest parameters and pass it to dotnet command. If you wish to publish the project with Debug configuration, use this:

just publish -c Debug

Run

Execute run recipe using just:

just run

Notes

There is a default recipe if you don't specify any recipe for just which will execute both publish and run recipes. If you want to run the project after publishing, then just type this in the shell:

just

About

Starter project template for alt:V C# featuring .NET generic host, Marten DB and Vertical Slice Architecture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published