An ASP.NET Core backend integrated with Supabase for authentication, database management, and environment-based secret storage.
- 🔑 Authentication – Secure user authentication via Supabase Auth.
- 📦 Database Integration – CRUD operations with Supabase tables.
- 🔐 Environment-Based Secret Management – Store secrets in
.envlocally. - ⚡ ASP.NET Core Backend – Modern, scalable web API architecture.
Ensure you have the following installed:
- .NET SDK
- Supabase Account
- PostgreSQL (Optional, if using locally)
-
Clone this repository:
git clone https://github.com/MrEshboboyev/supabase-dotnet.git cd src -
Install dependencies:
dotnet restore
-
Create a
.envfile in the project root and add your Supabase credentials:SUPABASE_URL=https://your-supabase-url.supabase.co SUPABASE_KEY=your-secret-api-key
-
Run the application:
dotnet run
📂 supabase-dotnet
├── 📂 Controllers # API Controllers
├── 📂 Models # Database Models
├── 📂 Services # Business Logic
├── 📄 appsettings.json # Configuration
├── 📄 .env # Environment Variables (ignored in Git)
├── 📄 Program.cs # Main Application Entry
src
📂 SupabaseDemo.Api
├── Properties
├── 📂 Contracts
├── 📂 Controllers # API Controllers
├── 📂 Extensions
├── 📂 Models # Database Models
├── 📄 .env # Environment Variables (ignored in Git)
├── 📄 appsettings.json # Configuration
├── 📄 Dockerfile
└── 📄 Program.cs # Main Application Entry
Contributions are welcome! Feel free to submit issues or pull requests.
This project is licensed under the MIT License.