- Docker
- Node.JS
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
- Paste the three values retrieved from the above link to the below values:
- 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 -dClone the ExplodedCode/Giftamizer repo.
To launch a webpack development server with hot reloading:
# install dependencies
npm installCreate a copy of the .env.example to .env and update the following:
REACT_APP_SUPABASE_ANON_KEY= Your SupabaseANON_KEYfrom above
npm startYou can access Giftamizer at http://localhost:8000.
- kong will route app traffic like so: http://localhost:8000 > http://localhost:3001.
You can access the Supabase dashboard at http://localhost:8000/project/default.