Compete to see who can create the most words using letters from the hive in this multiplayer modification of The New York Times Spelling Bee.
Provides a Postgres database and a RESTful API.
- Make sure Docker is running
- Run
supabase start
Scrape puzzle data from the official spelling bee game.
- Create a
.env.local
file
# supabase/.env
ENVIRONMENT=production
- Run
supabase functions serve load-puzzle --env-file ./supabase/.env
to get the function running locally - Run the following cURL request to trigger the function:
curl --request POST 'http://localhost:54321/functions/v1/load-puzzle' \
--header 'Authorization: Bearer <SUPABASE_SERVICE_ROLE_KEY>' \
--header 'Content-Type: application/json'
- Change into the
web/
directory - Run
yarn install
to install dependencies - Create a
.env.local
file:
# web/.env.local
REACT_APP_SUPABASE_URL=http://localhost:54321 # Supabase API URL
REACT_APP_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1N... # Supabase anonymous public key
- Run
yarn start
- the application should be available at http://localhost:3000