This extension adds a profile and registration page for builders using Next Auth and EIP 712
It can be used as a starting point for user management and authentication, and borrows heavily from BuidlGuidl's own Extensions Hackathon project.
Before you begin, you need to install the following tools:
- Node (>= v18.17)
- Yarn (v1 or v2+)
- Git
- Docker Engine
- Install dependencies
yarn install
- Spin up the Postgres database service + create database + seed
docker-compose up -d
yarn drizzle-kit push
yarn seed
See more info about the database in the section below
- Start your NextJS app:
yarn start
Visit your app on: http://localhost:3000.
We are using Drizzle with Postgres. You can run drizzle-kit from the root with yarn drizzle-kit
- To sync your database run
yarn drizzle-kit migrate - Tweak
seed.jsif needed + runyarn seed(will delete existing data)
To iterate on the database:
- Tweak the schema in
schema.ts yarn drizzle-kit generateto create migration files (or useyarn drizzle-kit pushif you are just tinkering)
You can explore the database with yarn drizzle-kit studio