Parker-Quinn / squid-dao-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the front-end repo for SQUID DAO.

πŸ”§ Setting up Local Development

Required:

$ git clone https://github.com/squiddaodev/squid-dao-web.git
$ cd squid-dao-web

# set up your environment variables
# read the comments in the .env files for what is required/optional
$ cp .env.example .env

# fill in your own values in .env, then =>
$ yarn
$ yarn start

The site is now running at http://localhost:3000! Open the source code and start editing!

Architecture/Layout

The app is written in React using Redux as the state container.

The files/folder structure are a WIP and may contain some unused files. The project is rapidly evolving so please update this section if you see it is inaccurate!

./src/
β”œβ”€β”€ App.jsx       // Main app page
β”œβ”€β”€ abi/          // Contract ABIs from etherscan.io
β”œβ”€β”€ actions/      // Redux actions
β”œβ”€β”€ assets/       // Static assets (SVGs)
β”œβ”€β”€ components/   // Reusable individual components
β”œβ”€β”€ constants.js/ // Mainnet Addresses & common ABI
β”œβ”€β”€ contracts/    // TODO: The contracts be here as submodules
β”œβ”€β”€ helpers/      // Helper methods to use in the app
β”œβ”€β”€ hooks/        // Shared reactHooks
β”œβ”€β”€ themes/       // Style sheets for dark vs light theme
└── views/        // Individual Views

About

License:MIT License


Languages

Language:JavaScript 52.7%Language:TypeScript 41.5%Language:SCSS 5.3%Language:Shell 0.3%Language:HTML 0.2%