BuidlGuidl v3
The ? BuidlGuidl is a curated group of Ethereum builders creating products, prototypes, and tutorials with ? scaffold-eth
Prerequisites
Node (v16 LTS) plus Yarn.
Every package in this monorepo (backend, hardhat, react-app) comes with a .sample.env file. The one inside packages/backend is the only one required to set up (copy it to packages/backend/.env). All the others work out of the box.
If you want to connect to a local firebase instance:
- Install the firebase CLI
- Set
FIRESTORE_EMULATOR_HOST=localhost:8080inpackages/backend/.env - Seed the local firebase: Copy
packages/backend/local_database/seed.sample.jsontopackages/backend/local_database/seed.jsonand tweak it as you need. You can always clean up the data in the Firestore UI and re-import by stopping & runningyarn backendagain.
If you want to connect to your live firebase instance:
- Donwload the
serviceAccountKey.jsonfile from the Firebase UI - Comment out the
FIRESTORE_EMULATOR_HOSTenv var. - Set
GOOGLE_APPLICATION_CREDENTIALSto the correct path to yourserviceAccountKey.json
Project setup
Install dependencies:
yarn install
(Optional) Start the firebase emulators (vs set up a live Firebase instance)
firebase emulators:start
Start the backend service:
yarn backend
In a new terminal, start the frontend:
yarn start
At this point, the APP should be available at http://localhost:3000.
