Skip to content

scaffold-eth/buidlguidl-v3

Repository files navigation

BuidlGuidl v3.5

The 🏰 BuidlGuidl is a curated group of Ethereum builders creating products, prototypes, and tutorials with 🏗 scaffold-eth

BuidlGuidl v3 homepage

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:8080 in packages/backend/.env
  • Seed the local firebase: Copy packages/backend/local_database/seed.sample.json to packages/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 & running yarn 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 your serviceAccountKey.json

Project setup

Install dependencies:

yarn install

(Optional) Start the firebase emulators (vs set up a live Firebase instance):

firebase emulators:start --project buidlguidl-v3

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.