Giter Site home page Giter Site logo

w3f-grants-archive / genesis-dao-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deep-ink-ventures/genesis-dao-frontend

0.0 0.0 0.0 11.14 MB

License: Apache License 2.0

JavaScript 2.05% TypeScript 95.06% CSS 2.70% Dockerfile 0.19%

genesis-dao-frontend's Introduction

GenesisDAO Frontend

About

This is the frontend UI for GenesisDAO. Users can use this interface to create DAOs and vote on proposals.

Status

๐Ÿ› ๏ธ 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
  1. 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

  • Please have one these wallet extensions installed on your browser: Talisman, Subwallet, or Polkadotjs extension. You can find them here

  • You will need some GenesisDAO native tokens to do transactions. For now, you can use the Polkadotjs UI. Go to the Accounts tab and pick one of the development accounts to transfer tokens to your own account. As of now, you will need 10 native tokens to create a DAO.

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

genesis-dao-frontend's People

Contributors

deep-ink-ventures avatar ghesericsu avatar hornilla-jowelyn avatar jowelyn-hornilla avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.