Skip to content

Repository files navigation

AuthenticationAPI project

.NET 10 • C# 14 • PostgreSQL • Docker


Overview

  • The AuthenticationAPI is a project created to review how to create an auth API, developed from scratch using C#, .NET, PostgreSQL and Docker.

🛠 Development Environment

Requirements

  • .NET 10 SDK;
  • Docker & Docker Compose;
  • PostgreSQL (if running outside Docker);
  • GitHub account (for CI/CD).

Build project

dotnet build --configuration Release

Restore dependencies

dotnet restore

🐳 Running with Docker and .env

To run containers

docker compose up -d

To stop containers

docker compose down

To start API + PostgreSQL

docker compose up --build

API will run on

http://localhost:8080

🗃 Migrations

Update Entity Framework Core (EF Core)

dotnet tool update --global dotnet-ef

To add migration

cd GeekShopping.ProductAPI
dotnet ef migrations add {MigrationName} --output-dir .\Infrastructure\Persistence\Migrations\

Note

Change the {MigrationName} field to the name you want to give your migration!

To apply migration

cd GeekShopping.ProductAPI
dotnet ef database update

or

dotnet ef database update --project .\GeekShopping.ProductAPI\GeekShopping.ProductAPI.csproj

To remove a migration

# cd GeekShopping.ProductAPI
dotnet ef migrations remove

📄 License

  • MIT License;
  • Free to use, modify, and distribute.

👨‍💻 Author

  • Pedro Henrique Mequelim da Silva;
  • Mobile and FullStack .NET Developer & Software Architecture;
  • Brazil, 🇧🇷

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages