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.