Skip to content

Juany899/chisis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chisis

Chisis is a Next.js 16 app for beauty businesses, built with Supabase, Stripe, and next-intl.

Prerequisites

  • Node.js 20 or newer
  • npm
  • A Supabase project
  • A Stripe account with a subscription price
  • Supabase CLI and Stripe CLI for local database and webhook setup

Setup

Install dependencies:

npm install

Create a local env file from the example:

cp .env.local.example .env.local

Fill in .env.local:

NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
STRIPE_SECRET_KEY=
STRIPE_WEBHOOK_SECRET=
STRIPE_PRICE_ID=

Supabase

Apply the initial schema in your Supabase project:

supabase link --project-ref <project-ref>
supabase db push

If you are not using the Supabase CLI, run supabase/migrations/001_initial_schema.sql in the Supabase SQL editor.

Stripe Webhook

Forward Stripe webhooks to the local app:

stripe listen --forward-to localhost:3000/api/webhooks/stripe

Copy the webhook signing secret from the Stripe CLI output into STRIPE_WEBHOOK_SECRET.

Development

Start the dev server:

npm run dev

Open http://localhost:3000.

Testing

Run unit tests:

npm run test

Run lint + typecheck + tests + build:

npm run check

Verification

Run linting, type checking, and a production build:

npm run check

You can also run each step separately:

npm run lint
npm run typecheck
npm run build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors