Code Monkey home page Code Monkey logo

pcp's Introduction

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

pcp's People

Contributors

physically1234 avatar x-sss-x avatar

Stargazers

 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.