Home

Awesome

<div align="center"> <img src="./public/rsk.png" height="140px" title="Remix Starter Kit" /> </div> <br /> <div align="center"><strong>Remix + Supabase starter for Typescript lovers</strong></div>

Remix Starter Kit is an opinionated boilerplate based off of Remix, with all the bells and whistles you would want ready, up and running when starting a Remix project with Supabase. <br/>

<div align="center"> <img src="https://img.shields.io/static/v1?label=PRs&message=welcome&style=flat-square&color=5e17eb&labelColor=000000" alt="PRs welcome!" /> <img alt="License" src="https://img.shields.io/github/license/one-aalam/remix-starter-kit?style=flat-square&color=5e17eb&labelColor=000000"> <a href="https://twitter.com/intent/follow?screen_name=aftabbuddy"> <img src="https://img.shields.io/twitter/follow/aftabbuddy?style=flat-square&color=5e17eb&labelColor=000000" alt="Follow @aftabbuddy" /> </a> </div> <br/> <!-- <div align="center"> <sub>Created by <a href="https://twitter.com/aftabbuddy">Aftab Alam</a> with the help of many <a href="https://github.com/one-aalam/remix-starter-kit/graphs/contributors">wonderful contributors</a>.</sub> </div> <br /> -->

Out of the box you get all the essentials

with Supabase support

and a bunch of pre-made, hand-rolled(easily replace-able) components, that you almost always end up installing/using for any non-trivial project

Note: Refer the basic branch for a bare minimum starter structure with all the essentials.

Quick Start

The best way to start with this template is to click "Use this template" above, create your own copy and work with it

Development

To start the project locally, run:

npm run dev

which kickstarts the Remix development and build server as well as TailwindCSS compilation in the watch mode. Open http://localhost:3000 in your browser to start working.

Check package.json for the full list of commands available at your disposal.

How to Setup Supabase for Remix Starter Kit?

If new to Supabase

Once done, or if you already have a Supabase project

Remix Starter Kit supports user profiles and user avatars. To get the profile table and storage ready, execute the following queries at https://app.supabase.io/project/<your-awesome-remix-project>/editor/sql

-- Create a table for Public Profiles
create table profiles (
  id uuid references auth.users not null,
  username text unique,
  avatar_url text,
  website text,
  updated_at timestamp with time zone,

  primary key (id),
  unique(username),
  constraint username_length check (char_length(username) >= 3)
);

alter table profiles enable row level security;

create policy "Public profiles are viewable by everyone."
  on profiles for select
  using ( true );

create policy "Users can insert their own profile."
  on profiles for insert
  with check ( auth.uid() = id );

create policy "Users can update own profile."
  on profiles for update
  using ( auth.uid() = id );

-- Set up Storage!
insert into storage.buckets (id, name)
values ('avatars', 'avatars');

create policy "Avatar images are publicly accessible."
  on storage.objects for select
  using ( bucket_id = 'avatars' );

create policy "Anyone can upload an avatar."
  on storage.objects for insert
  with check ( bucket_id = 'avatars' );

Note When going live remember to configure SUPABASE_URL and SUPABASE_KEY in your deployment service provider like Vercel

What you'll get?

With all the configs done right, you should get the following screens/views up and running

Sign In

<hr/> <img src="./public/app-shots/sign-in.png" alt="Sign In"> <hr/>

Sign In (with validation errors)

<hr/> <img src="./public/app-shots/sign-in-error.png" alt="Sign In"> <hr/>

Sign Up

<hr/> <img src="./public/app-shots/sign-up.png" alt="Sign In"> <hr/>

Profile (default landing)

<hr/> <img src="./public/app-shots/profile.png" alt="Sign In"> <hr/>

Profile Update Screen (with image upload)

<hr/> <img src="./public/app-shots/profile-edit.png" alt="Sign In">

Recommendations

License

MIT