Skip to content

saineshwar/Aspire_postgres

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ˜ Integrating PostgreSQL with .NET Aspire

This repository demonstrates how to integrate PostgreSQL with .NET Aspire, a powerful and modern framework for building cloud-native, distributed applications.

๐Ÿš€ What is .NET Aspire?

.NET Aspire is a cloud-native development stack for .NET, designed to streamline microservice orchestration, observability, and integration with essential infrastructure like databases, message queues, and cloud services.

๐Ÿ›ข๏ธ Why PostgreSQL?

PostgreSQL is a robust, open-source, enterprise-grade relational database. Itโ€™s highly extensible and supports advanced data types and indexing features, making it ideal for modern applications.

Integrating PostgreSQL with .NET Aspire enables:

  • Scalable and reliable data storage
  • Entity Framework Core support
  • Full observability and health checks

๐Ÿ“˜ Full Tutorial

Read the full tutorial here:
๐Ÿ”— How to Integrate .NET Aspire with PostgreSQL

๐Ÿ“š What You'll Learn:

  • Running PostgreSQL using Docker with Aspire
  • Configuring Aspire to connect using builder.AddPostgres(...)
  • Implementing data access using Entity Framework Core
  • Applying database migrations and building APIs
  • Viewing logs and health checks through Aspire tooling

๐Ÿงฐ Tech Stack

  • .NET 8 / .NET Aspire
  • ASP.NET Core
  • PostgreSQL
  • Entity Framework Core (Npgsql provider)
  • Docker

๐Ÿ› ๏ธ Getting Started

Prerequisites

Run the Project

git clone https://github.com/saineshwar/Aspire_postgres.git
cd aspire-postgresql-integration
dotnet run --project AspireApp

About

Aspire_postgres

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published