Skip to content

slashid/org-switch-demo-public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

/id Notes

A web app that demonstrates SlashID suborganizations and organization switching.

Uses React, Vite, Node, Fastify, and openapi-typescript-codegen.

Read the guide

This repo is a barebones reproduction of the /id Notes full-stack multi-tenant example app featuring organization switching.

The code here acts as a reference for the guide:

How to Build a Multi-Tenant App with Organization Switching using React, Fastify and SlashID

Using this repo

Set environment variables

mv .env.example .env
  • VITE_ROOT_ORG_ID is your SlashID organization id.
  • ROOT_API_KEY is your SlashID API key.

Your organization id and API key can be found in the SlashID Console after signing up.

Install dependencies

npm install

Generate the API client & build the frontend

npm run build

Run the full-stack web application

npm start