Skip to content

intellicook/app-controller

Repository files navigation

App Controller

The controller service that connects backend components and the frontend.

Development Setup

The service uses ASP.NET Core on C# 12 and .NET 8.0. Since I am using JetBrains Rider, I will be able to provide more instructions for setting up the project in Rider.

  1. Clone the repository.

  2. To open the projects, open the AppController.sln solution file found in the root of the repository.

  3. Run the following commands to install the Husky.Net pre-commit hooks, which can help check if your formatting will pass the GitHub workflows before you commit.

    # Restore the tools defined in .config/dotnet-tools.json
    dotnet tool restore
    
    # Install the Husky.Net git hooks
    dotnet husky install

Docker

Apart from running directly on the host machine, you can run it in Docker and Docker Compose.

Before starting anything, you have to define the environment variables in the .env file. You can copy the .env.example file and fill in the values.

cp .env.example .env

The only value you need to change is Build__GithubPat.

Making Code Changes

Important things to note when making code changes:

  • All code changes made to the main branch must be done from a pull request, the branch name should use kebab-case.

  • The GitHub workflows on the pull request must be passed before being able to merge into main.

  • The formatting are defined in .editorconfig.

  • Always use the dotnet-ef tool to create migrations and update the database schema, so that the migration files are consistent.

Tests

The service uses xUnit for unit tests and Moq for mocking. The followings are the test projects:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages