- Fork the repo and clone it locally
- Run 'npm install'
- To start the server, run
npm run dev
The repo is a Next.js repo. You can read more about Next.js here
Note - if you just want to work on non Database related features, at the bottom of index.tsx
there's an alternative getServerSideProps
which will return mock data that is identical to the data from the db.
If you are just working on FE features i'd suggest using this as it saves a lot of setup
But, if you need to setup the database :-)
- Go to https://console.firebase.google.com/ and click Add project
- Click on the Cloud Firestore button (it's a big orange sqaure on the page) and click on Create Database
- In the wizard, choose Production mode
- Select a location (preferably eu-something..)
Once your database is created, in the sidebar, next to Project overview, there's a Cog icon. Click it, and navigate to Project settings -> Service accounts
- Click on Generate new private key
- Once the key is generated, you will have a button that downloads a json file
- In the root of the project, create a file called serviceAccountKey.json and paste the content of your downloaded json file. Note: This file is in the .gitignore, but make sure you don't commit it!
- run the app (
npm run dev
) - The first run of the app will create an initial board in your firebase DB. You can then comment out the lines in
index.tsx
that have the commentSeed data
above them. (If they are commented out, you'll need to un-comment them and refresh for the seeding to happen)
See This issue for issues open for grabs. And thanks for taking a part in this project!