A realtime multiplayer tic-tac-toe web application.
Setup and run the project locally on your workstation.
-
Create a Firebase project with
Annoymous Authentication
andRealtime Database
. -
Update
Realtime Database
security rules.
{
"rules": {
".read": true,
".write": true
}
}
-
Clone this repo.
-
Install packages
npm install
- Create
.env
file with the following variables at the root directory of this repo. These values can be found in your Firebase project.
NEXT_PUBLIC_FIREBASE_KEY=<KEY>
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=<DOMAIN>
NEXT_PUBLIC_FIREBASE_DATABASE_URL=<URL>
NEXT_PUBLIC_FIREBASE_PROJECT_ID=<ID>
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=<BUCKET>
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=<ID>
NEXT_PUBLIC_FIREBASE_APP_ID=<ID>
- Start application in development mode
npm run dev
Eslint
is configured for the project. a11y
plugin has been added to check for issues with accessbility.
npm run lint