Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.56 KB

File metadata and controls

53 lines (35 loc) · 1.56 KB

Local Setup

Pre-Requisites

  • Docker
  • Node.JS

Setup Supabase Stack

Clone the ExplodedCode/Giftamizer-Supabase repo.

Create a copy of the .env.example to .env and update the following:

  • REACT_APP_URL = http://local.machine.ip.address:3001/ (Do not use localhost - this is a limitation with Docker routing).
    • TODO: Find workaround for updating the local machine IP.
  • Generate API Keys: https://supabase.com/docs/guides/self-hosting/docker#generate-api-keys
    • Paste the three values retrieved from the above link to the below values:
      • JWT_SECRET
      • ANON_KEY
      • SERVICE_ROLE_KEY
  • Set POSTGRES_PASSWORD to any random string.
  • Set REALTIME_SECRET_KEY_BASE to any random 64 character string.

Change any other variables if needed then start the stack:

docker compose up -d

Start Frontend

Clone the ExplodedCode/Giftamizer repo.

To launch a webpack development server with hot reloading:

# install dependencies
npm install

Create a copy of the .env.example to .env and update the following:

  • REACT_APP_SUPABASE_ANON_KEY = Your Supabase ANON_KEY from above
npm start

You can access Giftamizer at http://localhost:8000.

You can access the Supabase dashboard at http://localhost:8000/project/default.