Skip to content

AugustoL/voting-dapp-daostack

 
 

Repository files navigation

Voting Dapp DAOstack

This app is a fork of alchemy, an app to work with DAOstack DAOs, this fork is focused on providing a more simple, autonomous and decentralized experience than https://alchemy.daostack.io/ and just for one DAO.

This is an open-source project under GPL 3.0 License, we invite you to fork it and collaborate :).

Differences from Alchemy

  • The app is designed to work only for one DAO.
  • No analytics.
  • No disqus widget.
  • Simpler UI.
  • Hash reactjs router-dom.
  • Less components in source code.
  • More optimized builds.
  • No cookies warning.
  • No terms and conditions.

Dependencies:

Installation

sudo apt-get install -y libsecret-1-dev
git clone https://github.com/AugustoL/voting-dapp-daostack.git
cd voting-dapp-daostack
npm ci

Run with DXdao config

npm run start-dxdao

Working with docker

The easiest way to start developing is to work with docker. Here is a quick setup; there are more detailed instructions in here.

After you have installed docker, run the following command to spin up ganache (with the migrated contracts), the graph-node server:

docker-compose up graph-node

Now, in a separate terminal run the following command to run dxdao-alchemy:

npm run start

At this point you should be able to access dxdao-alchemy on http://127.0.0.1:3000.

See working with docker for details and troubleshooting.

Interacting with your test instance using MetaMask

  1. Install and enable MetaMask extension in Chrome
  2. Click on the MetaMask extension icon in the toolbar and log in
  3. Click on the avatar icon in the top right, and choose "Import Account"
  4. Choose "Private Key" and paste the string 0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d and click "Import"
  5. Give it a name like "Alchemy Test Account" so you won't get confused later
  6. If you need more than one test account you can also import these private keys: 0x6cbed15c793ce57650b9877cf6fa156fbef513c4e6134f022a85b1ffdd59b2a1, 0x6370fd033278c143179d81c5526140625662b8daa446c22ee2d73db3707e620c and 0x646f1ce2fdad0e6deeeb5c7e8e5543bdde65e86029e2fd9fc169899c440a7913. Make sure to give them all differnent names.
  7. Make sure that Metamask is connected to 127.0.0.1:8545 (choose from the "Networks" picklist in Metamask)
  8. Go to http://127.0.0.1:3000 to load Alchemy

Packages

No packages published

Languages

  • TypeScript 76.3%
  • CSS 20.2%
  • JavaScript 3.2%
  • Other 0.3%