I couldn't find a decent free online version, so decided to make one. Written as a Next.js application, backed by Firebase and deployed with Vercel. Just a little pet project to keep me occupied during Covid-19 times.
SCRABBLE® is a registered trademark. All intellectual property rights in and to the game are owned in the U.S.A and Canada by Hasbro Inc., and throughout the rest of the world by J.W. Spear & Sons Limited of Maidenhead, Berkshire, England, a subsidiary of Mattel Inc.
To run the application locally you will need to setup a (free) Firebase project.
- Create a new Firebase project and register a web app.
- Copy the Firebase config object to the root of this repo as
firebase-web-config.json
, for example:
{
"apiKey": "<your-api-key>",
"authDomain": "<your-auth-domain>",
"projectId": "<your-project-id>",
"storageBucket": "<your-storage-bucket>",
"messagingSenderId": "<your-message-sender-id>",
"appId": "<your-app-id>"
};
- Enable email link (passwordless sign-in) authentication.
- Provision a Cloud Firestore database.
- Generate a private key,
copy the JSON file to the root of the repo and rename to
private-key.json
. - Run
firebase use --add
and select your project (choose any alias you like). - Run
yarn firebase deploy --only firestore:rules
to apply the database riles.
You should now be able to bring the application up with yarn dev
and visit it
at http://localhost:3000.
Note that if you want to hit the application at 127.0.0.1
instead you will
need to whitelist the domain in the Firebase console.