Skip to content
/ backend Public

Backend for Custom GitHub Profile CSS

Notifications You must be signed in to change notification settings

gh-css/backend

Repository files navigation

Backend for GHCSS

Devlopment

Requirements

  • .NET 8.X
  • Docker & Docker Compose

1. Installing Dependencies

Naviagate to the cloned repository and run the following command to install the project dependencies:

dotnet restore

2. Enviorment Variables

Copy the .env.example to .env and enter the credentials.

3. Postgres

If you don't want to run postgres locally you can also use the following:

docker-compose --env-file .env run -d --service-ports postgres

(This will use the enviorment variables directly from .env)

4. Run the Backend

To run the backend you can either run the defined script in the launchSettings.json via the following command:

dotnet run --launch-profile "http"

Or just run the launch profile in your preferred IDE

Database Migrations

Requirements:

  • Dotnet Entity Framework

Dotnet Entity Framework can be installed by running:

dotnet tool install --global dotnet-ef

Running the Migration

If you changed or added any database relevant files like Data/GitHubUser.cs you can create a new migration by running:

dotnet ef migrations add ExampleMigrationName

Then you just re-run the dotnet application and it will automatically update the database.

About

Backend for Custom GitHub Profile CSS

Resources

Stars

Watchers

Forks

Releases

No releases published