Sveltekit Firebase Multi Tenancy screenshot

Sveltekit Firebase Multi Tenancy

Author Avatar Theme by Codechips
Updated: 21 Nov 2021
6 Stars

Firebase Firestore + SvelteKit + multi-tenancy example project

Categories

Overview

“SvelteKit Firebase Multi-Tenancy” is an example or proof-of-concept project that demonstrates how to use SvelteKit with Firebase Auth and Firestore. The project also includes integration with Tailwind CSS. It focuses on modeling Firestore for multi-tenancy.

Features

  • Integration of SvelteKit with Firebase Auth and Firestore
  • Modeling Firestore for multi-tenancy
  • Integration of Tailwind CSS
  • Use of Firebase emulator for Firestore and Firebase Auth locally
  • Setting custom claims for users in Firebase Auth
  • Creation of users and data in Firestore from the command line using Firebase admin
  • Retrieval of data from Firestore in different ways

Installation

To run the app:

  1. Install the dependencies by running the following command:

    pnpm i
    
  2. Start the app and Firebase emulator by running the following command:

    pnpm start
    

Please note that the app does not follow any recommended structure and only includes the minimal code required to make it work. The Firebase functions project included in the app is empty and does not include any cloud functions.

Summary

“SvelteKit Firebase Multi-Tenancy” is a project that demonstrates the use of SvelteKit with Firebase Auth and Firestore. It showcases how to model Firestore for multi-tenancy and includes integration with Tailwind CSS. The app uses Firebase emulator for Firestore and Firebase Auth locally. It provides code snippets and instructions for installation. However, it is important to note that the app does not handle any errors and only follows the happy path.