The 🏰 BuidlGuidl is a curated group of Ethereum builders creating products, prototypes, and tutorials with 🏗 scaffold-eth
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:8080
inpackages/backend/.env
- Seed the local firebase: Copy
packages/backend/local_database/seed.sample.json
topackages/backend/local_database/seed.json
and tweak it as you need. You can always clean up the data in the Firestore UI and re-import by stopping & runningyarn backend
again.
If you want to connect to your live firebase instance:
- Donwload the
serviceAccountKey.json
file from the Firebase UI - Comment out the
FIRESTORE_EMULATOR_HOST
env var. - Set
GOOGLE_APPLICATION_CREDENTIALS
to the correct path to yourserviceAccountKey.json
Install dependencies:
yarn install
(Optional) Start the firebase emulators (vs set up a live Firebase instance)
# You might need to add a real "--project <projectName>" (run firebase projects:list)
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.