Coder Social home page Coder Social logo

rmourey26 / onyx Goto Github PK

View Code? Open in Web Editor NEW
30.0 1.0 3.0 1.03 MB

Full stack NextJS 14 with Supabase SSR Auth & PostgreSQL DB, TanStack React Query, React Hook Form, Zod validation, RBAC, CRUD operations, Shadcn-UI, admin dashboard OpenAI playground, and more. Fork and get your MVP running in days. Web3Modal integrated version at @quantum-one-dlt/onyx-one

Home Page: https://onyx-rho-pink.vercel.app

CSS 0.54% TypeScript 98.22% JavaScript 1.24%
dashboard full-stack nextjs14 react-hook-form role-based-access-control shadcn-ui supabase-auth supabase-db supabase-js tailwind-css

onyx's Introduction

Attention DApp Builders

  • Onyx Web3/DApp version/branch available called Onyx One. Onyx One includes everything in Onyx plus a TanStack React Query powered Web3Modal and Wagmi SSR configuration allowing users to connect to any one of 380+ cryptographic wallets across every Ethereum virtual machine compatible chain.

What is Onyx?

  • Onyx is a turnkey, full stack web app written in Typescript that includes role based access control (RBAC), complete Supabase SSR Auth and DB integration, Zod and YUP! validation, Tanstack React Query, React Hook form, and more. Fork, customize, and deploy on Vercel or elsewhere to have your MVP up and running in a few days or less. Stack details are below.

Stack and Features

  • NextJS 14 App Router in Typescript
  • Supabase
    • SSR Auth with
      • Fully configured email/password signup, login, oauth, PKCE and confirm routes
      • middleware
      • server actions
      • typed Auth & DB clients
      • readOnly userSession clients
    • Postgres DB with CRUD functions configured
      • RBAC configured admin dashboard with data visualization, members administration and todo lists
      • Contact form with toast, Zod validation, server side table insert
  • TanStack React Query Provider
    • Demo SSR with Supabase DB & cache helpers
  • YUP! & Zod validation and schemas
  • Shadcn-UI, Radix-UI primitives, Tailwind CSS
  • React Hook Form
  • User profile base at /private page
  • OpenAI playground UI
  • Onboarding, signIn/signUp pages
  • Podcast UI
  • CookieButton component configured to work with Consent Manager from Termly free plan. Just create a free Termly account, add your Script tag on the app/layout page using Next Script and then add your CookieButton to your app/layout just above the ThemeProvider and just below your termly Script tag.
  • Lucide React Icons with many brand SVGs ready for your props
  • More..

API

  • TODO

Getting started with Onyx:

  • First, configure your environment
    • Create a file named .env.local in project root
    • Create a Supabase account and add the following to your env file
      • NEXT_PUBLIC_SUPABASE_KEY="Your supabase anon key"
      • SUPABASE_JWT_SECRET="Your supabase JWT secret"
      • NEXT_PUBLIC_SUPABASE_URL="Your supabase project URL"
      • SUPABASE_SERVIC_ROLE_KEY="Your supabase service role key"
    • Ensure your Supabase tables match the tables and types found in '@/lib/supabase'.
    • Add authorized development and production URL's to Supabase URL config.

Run

  • Development server:
npm i && npm run dev
# or
yarn i && yarn run dev
# or
pnpm i && pnpm dev
# or
bun i && bun dev

Open http://localhost:3000 with your browser to see the result.

Deploy on Vercel

Deploy with Vercel

Reference/Credit

  • @chensokheng

Tips/Support

Buy Me A Coffee

onyx's People

Contributors

rmourey26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.