Skip to content

xulioc/sveltekit-multitenant-rbac

Repository files navigation

Svelte MultiTenant RBAC Dashboard

One more Svelte starter, now with Multi-Tenancy and Role Based Access Control

dashboard


DISCLAIMER: This project is not production ready. Svelte5 is not stable and RBAC is not fully tested. Use at your own risk.

Features

Technologies

Installation

Clone the repo

git clone https://github.com/xulioc/sveltekit-multitenant-rbac.git
cd sveltekit-multitenant-rbac

Setup environment variables

Create a new .env file

cp .env.example .env

Edit your .env file

# MANDATORY VARIABLES
PRIVATE_POSTGRES_URL="postgresql://<YOUR POSTGRESS URL>"

Initialize database

pnpm db:generate
pnpm db:push

To start in development mode:

pnpm dev

To build and start in production mode:

pnpm build
pnpm preview

Deploy

To deploy to Vercel please follow instructions here.

Contribute

Feel free to contribute. Issues and Pull Requests are welcome.

License

MIT

Resources

Link
sveltekit-auth GitHub Repo stars
sveltekit-supabase-dashboard GitHub Repo stars
auth-sveltekit GitHub Repo stars
sveltekit-lucia-auth-v3-example GitHub Repo stars
sveltekit-stackter GitHub Repo stars
saas-starter GitHub Repo stars
sveltekit-starter-svelte5 GitHub Repo stars
https://www.shadcn-svelte.com/blocks
https://dev.to/permify/implementing-role-based-access-control-in-sveltekit-56hf