Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local dev env setup #2923

Merged
merged 5 commits into from
Feb 15, 2024
Merged

Local dev env setup #2923

merged 5 commits into from
Feb 15, 2024

Conversation

gravityblast
Copy link
Contributor

@gravityblast gravityblast commented Feb 12, 2024

Summary

This PR adds a full local development environment setup allowing local testing with all the services running on docker-compose and scripts to populate the environment with test data.

With docker compose we run:

  • piña: a local dev only IPFS implementation with the Pinata API endpoint to pin files (https://github.com/gitcoinco/pina).
  • 2 anvil instances running local chains with id 313371 and 313372
  • 1 postgres database used by the indexer
  • an instance of our Indexer indexing the 2 local chains

The scripts/dev script contains commands to:

  • deploy Allo V1 contracts to the 2 local chains
  • populate the 2 chains with Allo V1 projects
  • deploy Allo V2 contracts to the 2 local chains
  • populate the 2 chains with Allo V2 profiles

Commands

  • ./scripts/dev start: starts all the services with docker-compose in detached mode and follow logs.
  • ./scripts/dev stop: stops the services.
  • ./scripts/dev setup: calls the subcommands to deploy and populate Allo V1 and V2 in the 2 local chains.

Additional work

@gravityblast gravityblast requested review from a team as code owners February 12, 2024 03:08
@gravityblast gravityblast marked this pull request as draft February 12, 2024 03:08
Copy link

vercel bot commented Feb 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 10:43pm
builder-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 10:43pm
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 10:43pm
explorer-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 10:43pm
manager ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 10:43pm
manager-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 14, 2024 10:43pm

@codenamejason
Copy link
Contributor

codenamejason commented Feb 14, 2024

@gravityblast should we add the nice Summary above to the README.md?

I updated it.

Copy link

gitstream-cm bot commented Feb 14, 2024

🥷 Code experts: no user but you matched threshold 10

gravityblast, bhargavaparoksham have most 👩‍💻 activity in the files.
gravityblast, vacekj have most 🧠 knowledge in the files.

See details

docker-compose.yml

Activity based on git-commit:

gravityblast bhargavaparoksham
FEB
JAN
DEC
NOV 60 additions & 0 deletions
OCT
SEP

Knowledge based on git-blame:
gravityblast: 100%

packages/common/src/chains.ts

Activity based on git-commit:

gravityblast bhargavaparoksham
FEB
JAN
DEC 49 additions & 3 deletions
NOV 229 additions & 0 deletions
OCT
SEP

Knowledge based on git-blame:
gravityblast: 60%
vacekj: 20%

To learn more about /:\ gitStream - Visit our Docs

Copy link

gitstream-cm bot commented Feb 14, 2024

This PR is 88.62973760932945% new code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants