deep-ink-ventures / genesis-dao-frontend

https://genesis-dao-frontend-zeta.vercel.app
Apache License 2.0
4 stars 5 forks source link

GenesisDAO Frontend

About

This is the frontend UI for GenesisDAO. Users can use this interface to create DAOs, vote on proposals, and govern the DAO via multisignature transactions.

Status

:hammer_and_wrench: This repo is still in the early development stage and please use it at your own risk.

Our design guide and mockups are here

Tech and code structure

Polkadot Next JS React TailwindCSS

This application is built with React and Next.js. We use Tailwind for CSS and Zustand for state management.

Zustand stores folder is here. Query actions are also in the useGenesisStore file.

Most of the transaction actions are in the useGenesisDao hook

Getting Started

Adjust the environment variables to your need or go with the defaults:

cp .env.example .env

The frontend defaults to the service and node of the genesis dao test environment.

Docker setup

We are using docker compose.

docker compose build
docker compose up

Building from source

  1. Install node packages
yarn install
  1. Start dev server

    yarn dev
  2. Now you can open http://localhost:3000 on your browser to see the application.

If you need to change the node endpoint, you can go to the config folder

Usage

Before commit

Please run this script to test, format, and lint code.

yarn pre-commit

Please use this script to commit and run tests:

yarn commit

This repo uses Conventional Commits specifications

License

APACHE 2.0 License