This is an official pnpm starter turborepo.
Gitcoin Dashboard for grantees. Gitcoin grant round for this Dashboard https://explorer.gitcoin.co/#/round/10/0xa20a0fdec6506667e90668300b0c88d9ae8670ae
Available: https://gitcoin-grant-dashboard.wuw-whateveryouwant.xyz
The dashboard:
Send project grant round information. Receive a list of donors with the amount, address, ens name, votes number, and date. Get round application details.
TODO: Would love to have more, filter by amount, data, votes. Grantees dashboard for donors. Rounds pages.
Let me know what you want!
Build by : https://twitter.com/MSG_Encrypted Founder of : https://twitter.com/WUW_WhtevrUWant
- User can enter project ID via a text box
- When valid project ID is entered, the dashboard returns the following data:
- List of donors (by wallet address and ENS if available)
- Amount of donation (native token and USD equivalent)
- Which round the donation occurred in (text/name)
- Date of donation
- If invalid project ID entered, display error state
- This dashboard should be maintained for the next 30 days. Possibility of extending with coordination w Gitcoin team. Gitcoin team is able to promote and send this dashboard around where helpful to the community.
This turborepo uses pnpm as a package manager. It includes the following packages/apps:
docs
: a Next.js appweb
: another Next.js appui
: a stub React component library shared by bothweb
anddocs
applicationseslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
This turborepo has some additional tools already setup for you:
-
TypeScript for static type checking
-
ESLint for code linting
-
Prettier for code formatting
-
Docker Compose for local database
We use Prisma to manage & access our database. As such you will need a database for this project, either locally or hosted in the cloud.
To make this process easier, we offer a docker-compose.yml
file to deploy a MySQL server locally with a new database named turborepo
(To change this update the MYSQL_DATABASE
environment variable in the docker-compose.yml
file):
cd my-turborepo
docker-compose up -d
Once deployed you will need to copy the .env.example
file to .env
in order for Prisma to have a DATABASE_URL
environment variable to access.
cp .env.example .env
If you added a custom database name, or use a cloud based database, you will need to update the DATABASE_URL
in your .env
accordingly.
Once deployed & up & running, you will need to create & deploy migrations to your database to add the necessary tables. This can be done using Prisma Migrate:
npx prisma migrate dev
If you need to push any existing migrations to the database, you can use either the Prisma db push or the Prisma migrate deploy command(s):
yarn run db:push
# OR
yarn run db:migrate:deploy
There is slight difference between the two commands & Prisma offers a breakdown on which command is best to use.
An optional additional step is to seed some initial or fake data to your database using Prisma's seeding functionality.
To do this update check the seed script located in packages/database/src/seed.ts
& add or update any users you wish to seed to the database.
Once edited run the following command to run tell Prisma to run the seed script defined in the Prisma configuration:
yarn run db:seed
For further more information on migrations, seeding & more, we recommend reading through the Prisma Documentation.
Run the following command:
npx degit vercel/turbo/examples/with-prisma with-prisma
cd with-prisma
yarn install
git init . && git add . && git commit -m "Init"
To build all apps and packages, run the following command:
yarn run build
To develop all apps and packages, run the following command:
yarn run dev
To build all apps and packages, run the following command:
cd my-turborepo
docker-compose up -d
pnpm run build
To develop all apps and packages, run the following command:
cd my-turborepo
pnpm run dev
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd my-turborepo
pnpm dlx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
pnpm dlx turbo link
Learn more about the power of Turborepo: