Skip to content

rgfx/waiting-list

 
 

Repository files navigation

Waiting List App

Example Supabase application showing how to use the inviteUserByEmail api to invite users to your application.

This project is built with:

Features

  • Invite List
  • Sign Up to Invite
  • Forgot Password
  • Admin Registration

Getting started

Clone the project from GitHub

git clone https://github.com/silentworks/waiting-list
cd waiting-list

Note: the @next is temporary

Developing

Copy the env.example and name it .env

Edit the file and enter all the required variable values

VITE_APP_URL=http://localhost:3000/
VITE_SUPABASE_URL=
VITE_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.

Run database migrations

pnpm m:up

Creating admin user

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.

Start development server

Once you've created a project and installed dependencies with pnpm install, start a development server:

pnpm dev

# or start the server and open the app in a new browser tab
pnpm dev -- --open

Building

Before creating a production version of your app, install an adapter for your target environment. Then:

pnpm build

You can preview the built app with pnpm preview, regardless of whether you installed an adapter. This should not be used to serve your app in production.

About

A Waiting list application built on Supabase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Svelte 56.8%
  • JavaScript 38.8%
  • Dockerfile 2.8%
  • HTML 1.2%
  • Shell 0.4%