/hanko-supabase-saas

An example note application built using Hanko, Supabase and the new App router in Next.js 14.

Primary LanguageTypeScriptMIT LicenseMIT

Hanko Supabase Next.js Example App

An open source example application built using Hanko, Supabase and the new App router in Next.js 14.

Tech stack

  • Hanko: For passwordless authentication.

  • Supabase: As the PostgreSQL Database

  • Next.js 14: For Frontend and Backend

  • TypeScript: To add static typing to JavaScript.

  • Prisma: For database access and ORM.

  • Tailwind CSS: For easy and customizable styling.

  • Tiptap: For notion style wyswyg note editor

Getting Started

Installation

  1. Clone this repository to your local machine:
git clone https://github.com/ra-kesh/hanko-supabase-saas
  1. Navigate to the project directory:
cd hanko-supabase-saas
  1. Install the project dependencies:
yarn
  1. Create a .env.local file in the root directory and configure your environment variables.
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
DATABASE_URL=your-postgresql-database-url-from-supabse
HANKO_API_KEY=your-hanko-api-key
  1. Generate Prisma client code and apply database migrations:
npx prisma generate
npx prisma migrate dev
  1. start the dev server
yarn run dev

Roadmap

  • Note editor performance enhancement
  • Build better marketing page
  • Subscriptions using Stripe
  • Responsive styles
  • Add OG images and metadata
  • Dark mode
  • Stripe
  • Better error handling
  • Better ts support

Resources

License

Licensed under the MIT license.