Skip to content

purvik6062/SpeedRunEthereum

Repository files navigation

SpeedRunEthereum

SRE Thumbnail

New version of SpeedRunEthereum built with Scaffold-ETH 2. An expanded experience for builders where you'll be able to unlock your builder profile after completing a few challenges. This will open the gates to:

  • Interact with other BuidlGuidl curriculums like ETH Tech Tree and BuidlGuidl CTF
  • Share your builds and discover what other builders are up to
  • Earn badges

You can find the repository containing the challenges here.

Requirements

Before you begin, you need to install the following tools:

Development Quickstart

  1. Install dependencies
yarn install
  1. Spin up the Postgres database service + create database + seed
docker compose up -d
yarn drizzle-kit migrate
yarn db:seed
  1. Start your NextJS app:
yarn start

Visit your app on: http://localhost:3000.

  1. You can explore the database with:
yarn drizzle-kit studio

Database Information

We are using Drizzle with Postgres for database management. You can run drizzle-kit commands from the root with yarn drizzle-kit.

Database Migration

Anytime we update the schema in packages/nextjs/services/database/config/schema.ts, we can generate a migration with:

yarn drizzle-kit generate

Then we can apply the migration with:

yarn drizzle-kit migrate

We also need to make sure we commit the migration to the repo.

Database (dev info)

To iterate fast on the database locally:

  • Tweak the schema in schema.ts
  • Run yarn drizzle-kit push to apply the changes.
  • Copy seed.data.example.ts to seed.data.ts, tweak as needed and run yarn db:seed (will delete existing data)

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages