Skip to content

x-sss-x/Pcp

 
 

Repository files navigation

Handic App

Steps to work on dev environment

  1. Pull the changes from your local repository using
git pull origin main
  1. Install the dependencies
npm install
  1. Create .env file in root project directory
DATABASE_URL = <your_local_db_url>
SUPABASE_SERVICE_ROLE_KEY = <local_supabase_role_key>
GOOGLE_CLIENT_ID = <your_google_client_id>
GOOGLE_CLIENT_SECRET = <your_google_client_secret>

above values are available when run

npx supbase status

To get GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET watch this Vedio

  1. Create .env.local file in root project directory
NEXT_PUBLIC_SUPABASE_URL = <local_supabase_api_url>
NEXT_PUBLIC_ANNON_KEY = <local_supabase_anon_key>
NEXTAUTH_URL = "http://localhost:3000" //this should be your next app server url
NEXTAUTH_SECRET = "secrete"
  1. Push the shema changes to supabase
npx prisma db push
  1. Seed the data to database
npx prisma db seed
  1. Generate types in supabase
npx supabase gen types typescript --local > ./types/supabase.ts
  1. Run dev server
npx supabase gen types typescript --local > ./types/supabase.ts

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.9%
  • JavaScript 2.5%
  • CSS 1.6%