Skip to content

An ASP.NET Core backend integrated with Supabase for authentication, database management, and environment-based secret storage.

Notifications You must be signed in to change notification settings

MrEshboboyev/supabase-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Supabase .NET Backend

An ASP.NET Core backend integrated with Supabase for authentication, database management, and environment-based secret storage.

πŸš€ Features

  • πŸ”‘ Authentication – Secure user authentication via Supabase Auth.
  • πŸ“¦ Database Integration – CRUD operations with Supabase tables.
  • πŸ” Environment-Based Secret Management – Store secrets in .env locally.
  • ⚑ ASP.NET Core Backend – Modern, scalable web API architecture.

πŸ“Œ Prerequisites

Ensure you have the following installed:

πŸ›  Setup & Installation

  1. Clone this repository:

    git clone https://github.com/MrEshboboyev/supabase-dotnet.git
    cd src
  2. Install dependencies:

    dotnet restore
  3. Create a .env file in the project root and add your Supabase credentials:

    SUPABASE_URL=https://your-supabase-url.supabase.co
    SUPABASE_KEY=your-secret-api-key
  4. Run the application:

    dotnet run

πŸ— Project Structure

πŸ“‚ 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

🀝 Contribution

Contributions are welcome! Feel free to submit issues or pull requests.

πŸ“œ License

This project is licensed under the MIT License.

About

An ASP.NET Core backend integrated with Supabase for authentication, database management, and environment-based secret storage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published