• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 2 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸš€ A Tailwindcss component library.

πŸ’š Supabase Launch Week 5 Hackathon:

πŸ’– Maintainers:

✌️ Socials
Pablo Hdez GitHub - Twitter
Nacho Aldama GitHub - Twitter
David Huertas GitHub - Twitter
Juan Rojas GitHub - Twitter

πŸ“Ή Video:

πŸ“¦ Packages:

  • πŸš€ Turborepo - The High-performance Build System for JavaScript & TypeScript Codebases.
  • ⚑️ Nextjs - The React Framework for Production.
  • βš’οΈ React 18 - A JavaScript library for building user interfaces.
  • πŸ’™ Typescript - A superset of JavaScript.
  • πŸ’š Supabase - Build in a weekend. Scale to millions.
  • πŸ’… Chakra UI for docs - Create accessible React apps with speed.
  • πŸ’¨ TailwindCSS for library - Rapidly build modern websites without ever leaving your HTML.
  • πŸ’– React-Icons - A flexible icon family for everyone.
  • ⬛ CodeSandbox Sandpack - A component toolkit for creating live-running code editing experiences, using the power of CodeSandbox.

πŸš€ Getting Started:

  1. Clone the repository:
git clone https://github.com/pheralb/superui.git
  1. Install dependencies:
cd superui
npm install
  1. Create a Supabase database with the following query:
create table components (
  id bigint generated by default as identity primary key,
  user_id uuid references auth.users not null,
  title text check (char_length(title) > 3),
  description text,
  code text,
  inserted_at timestamp with time zone default timezone('utc'::text, now()) not null
);

create table public.users (
  id uuid not null primary key, -- UUID from auth.users
  email text,
  raw_user_meta_data text
);
πŸ”¨ trigger functions:

Trigger function to adding users when register for the first time:

create or replace function public.handle_new_user() 
returns trigger as $$
begin
  insert into public.users (id, email)
  values (new.id, new.email,new.raw_user_meta_data);
  return new;
end;
$$ language plpgsql security definer;

create trigger on_auth_user_created
  after insert on auth.users
  for each row execute procedure public.handle_new_user();
  1. Copy Supabase URL & Anon api key from your database and create a .env file in the /app folder with the following content:
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
  1. Run the following command to start the development server:
npm run dev

And ready πŸ₯³, go to localhost:3001.

πŸ”‘ License:

More Repositories

1

slug

🌱 A URL shortener built with T3 Stack: Nextjs 13 + Tailwind CSS + Typescript + tRPC v10 + NextAuth.js & Prisma.
TypeScript
241
star
2

svgl

🧩 A beautiful library with SVG logos. Built with Sveltekit & Tailwind CSS.
TypeScript
167
star
3

superkey

❄️ A stylized command menu for React.
TypeScript
89
star
4

react-symbols

✨ Symbols by Miguel Solorio, for React.
TypeScript
62
star
5

project-hackathon

🌻 An open-source hackathon management. Hackafor February 2023.
TypeScript
49
star
6

website

✌️ Building my personal website with Astro, Tailwind CSS & Typescript.
TypeScript
15
star
7

weathr

β˜€οΈ A web weather app.
TypeScript
14
star
8

docskit

🌳 Supabase Launch Week 6 Hackathon - Create and share documentation effortlessly.
TypeScript
11
star
9

gifit

πŸ•ΉοΈ A place to discover amazing gifs.
JavaScript
11
star
10

preact-pwa

βš›οΈ Create a fast PWA with Preact, Typescript & Vitejs.
TypeScript
7
star
11

linescale

:electron: The web-based text editor for everyone.
TypeScript
6
star
12

movies-daw

πŸŽ“ Final DAW MERN project. Using Mongodb, Express, React & Nodejs.
JavaScript
4
star
13

taskvelte

🍊 A CRUD app created with Svelte, Firebase v9 & Tailwind.
JavaScript
2
star
14

learning-zod

πŸ”· A REST api with Zod - TypeScript-first schema declaration and validation library.
TypeScript
2
star
15

vue-periodic-table

πŸ¦• Periodic Table with Vue
Vue
1
star
16

katas-testing

πŸ§ͺ Practicing kata testing
JavaScript
1
star
17

pheralb

✍️ Github Readme.
1
star
18

node-test

🐒 Exercises with Nodejs
JavaScript
1
star