Example Supabase application showing how to use the inviteUserByEmail
api to invite users to your application.
This project is built with:
- Invite List
- Sign Up to Invite
- Forgot Password
- Admin Registration
Clone the project from GitHub
git clone https://github.com/silentworks/waiting-list
cd waiting-list
Copy the env.example
and name it .env
Edit the file and enter all the required variable values
PUBLIC_SUPABASE_URL=
PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
CONNECTION_STRING=
The "CONNECTION_STRING" can be found inside the Supabase Dashboard by going to Settings > Database then scrolling down to Connection string and clicking on the URI tab. You should see a string looking like postgresql://postgres:[YOUR-PASSWORD]@host:5432/postgres
.
pnpm m:up
Once the project server is running you can visit the signup path /auth/signup
to create your admin user.
Note that once you have created your admin user, this route will no longer be accessible.
Once you've created a project and installed dependencies with pnpm install
(or npm install
or yarn
), start a development server:
pnpm dev
# or start the server and open the app in a new browser tab
pnpm dev -- --open
To create a production version of your app:
pnpm build
You can preview the production build with pnpm preview
.
To deploy your app, you may need to install an adapter for your target environment.