Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pheralb/superui
🚀 A Tailwindcss component library.
https://github.com/pheralb/superui
components components-library hacktoberfest nextjs react supabase-hackathon tailwindcss turborepo ui
Last synced: 9 days ago
JSON representation
🚀 A Tailwindcss component library.
- Host: GitHub
- URL: https://github.com/pheralb/superui
- Owner: pheralb
- License: mit
- Created: 2022-08-11T15:56:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-05T12:05:32.000Z (about 2 years ago)
- Last Synced: 2024-12-15T06:37:10.056Z (12 days ago)
- Topics: components, components-library, hacktoberfest, nextjs, react, supabase-hackathon, tailwindcss, turborepo, ui
- Language: TypeScript
- Homepage: https://superui.vercel.app
- Size: 1.47 MB
- Stars: 153
- Watchers: 5
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![GitHub releases](https://img.shields.io/github/release/pheralb/superui)
![GitHub stars](https://img.shields.io/github/stars/pheralb/superui)
![GitHub issues](https://img.shields.io/github/issues/pheralb/superui)
![GitHub license](https://img.shields.io/github/license/pheralb/superui)
[![Required Node.JS >= 14.18.0 || >=16.0.0](https://img.shields.io/static/v1?label=node&message=14.18.0%20||%20%3E=16.0.0&logo=node.js&color=3f893e)](https://nodejs.org/about/releases)## 💚 [Supabase Launch Week 5](https://supabase.com/launch-week) Hackathon:
- ✅ [Supabase Auth](https://supabase.com/docs/guides/auth) - User authentication.
- ✅ [Supabase Database](https://supabase.com/docs/guides/database) - save the information of each user-created component.## 💖 Maintainers:
| | ✌️ Socials |
| ------------- | --------------------------------------------------------------------------------------- |
| Pablo Hdez | [GitHub](https://github.com/pheralb/superui) - [Twitter](https://twitter.com/pheralb_) |
| Nacho Aldama | [GitHub](https://github.com/nachoaldamav) - [Twitter](https://twitter.com/srdrabx) |
| David Huertas | [GitHub](https://github.com/ikurotime) - [Twitter](https://twitter.com/ikurotime) |
| Juan Rojas | [GitHub](https://github.com/Davidr2998) - [Twitter](https://twitter.com/tmchein) |## 📹 Video:
- [https://streamable.com/j3lxtb](https://streamable.com/j3lxtb).
## 📦 Packages:
- 🚀 [Turborepo](https://turborepo.org/) - The High-performance Build System for JavaScript & TypeScript Codebases.
- ⚡️ [Nextjs](https://nextjs.org/) - The React Framework for Production.
- ⚒️ [React 18](https://es.reactjs.org/) - A JavaScript library for building user interfaces.
- 💙 [Typescript](https://www.typescriptlang.org/) - A superset of JavaScript.
- 💚 [Supabase](https://supabase.com/) - Build in a weekend.
Scale to millions.
- 💅 [Chakra UI for docs](https://chakra-ui.com/) - Create accessible React apps with speed.
- 💨 [TailwindCSS for library](https://tailwindcss.com/) - Rapidly build modern websites without ever leaving your HTML.
- 💖 [React-Icons](https://react-icons.github.io/react-icons/) - A flexible icon family for everyone.
- ⬛ [CodeSandbox Sandpack](https://sandpack.codesandbox.io/) - A component toolkit for creating live-running code editing experiences, using the power of CodeSandbox.## 🚀 Getting Started:
1. Clone the repository:
```bash
git clone https://github.com/pheralb/superui.git
```2. Install dependencies:
```bash
cd superui
npm install
```3. Create a [Supabase database](https://database.new/) with the following query:
```sql
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:
```sql
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();
```4. Copy Supabase URL & Anon api key from your database and create a _.env_ file in the **/app folder** with the following content:
```bash
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
```5. Run the following command to start the development server:
```bash
npm run dev
```And ready 🥳, go to [localhost:3001](http://localhost:3001/).
## 🔑 License:
- [MIT License](https://github.com/pheralb/superui).