- NodeJS v10
- Firebase
-
Create a new Firebase project.
- The project name doesn't really matter, but just name it
monkeytype. - Google Analytics is not necessary.
- The project name doesn't really matter, but just name it
-
Run
firebase loginon your terminal to log in to the same google account as you just used to create the project. -
Git clone this project.
-
Rename
.firebaserc_exampleto.firebasercand change the project name of default to the firebase project id you just created.- If
.firebaserc_exampledoes not exist after cloning, create your own with:
{ "projects": { "default": "your-firebase-project-id", } }- Run
firebase projects:listto find your firebase project id.
- If
-
Generate a Firebase Admin private key
- In your Firebase console, go to Project Settings > Service Accounts
- Click "Generate New Private Key"
- Save as
serviceAccountKey.jsonin thefunctions/directory
- Run
npm installin the project root directory to install dependencies. - Run
npm run start:devto start a local dev server on port 5000. It will watch for changes and rebuild when you edit files insrc/orpublic/. Use ctrl+c to stop it.- Run
firebase use defaultif you run into any errors for this.
- Run
- Code style is enforced by Prettier, which is automatically run every time you
git commit(if you've followed the above instructions properly).
If you run into any problems, let me know on GitHub or Discord in the #development channel.