Node.js webapp (REST API) for accessing information about the elimu.ai Community DAO at https://client.aragon.org/#elimuai
The information about the DAO will be fetched from this web server via JSON, and displayed in the webapp.
Examples of information that will be made available:
- Donations made to the DAO's Finance App
- Holders of the elimu.ai Community Token (ECT)
- Votes created by and cast by the community's contributors
- Payments made to community contributors
Install Node.js:
brew install node
Add Aragon Connect:
yarn add @aragon/connect
yarn add @aragon/connect-finance
yarn add @aragon/connect-thegraph-tokens
yarn add @aragon/connect-thegraph-voting
Run the application:
node app.js
Access the application in your browser: http://localhost:3000
/apps
/finance-transactions
/token-holders
/votes
Install Node.js: https://github.com/nodesource/distributions#installation-instructions-1
curl -sL https://rpm.nodesource.com/setup_14.x | bash -
yum install nodejs
Clone GitHub repository:
cd ~/.elimu-ai
git clone https://github.com/elimu-ai/aragon-dao-webapp.git
cd aragon-dao-webapp/
Install Yarn:
npm install -g yarn
Add Aragon Connect:
yarn add @aragon/connect
yarn add @aragon/connect-finance
yarn add @aragon/connect-thegraph-tokens
yarn add @aragon/connect-thegraph-voting
Install PM2 process manager for Node.js for automatically running and restarting app on OS reboot and app crash:
npm i -g pm2@latest
Set PM2 configuration. It uses the build script described in package.json. Only necessary to do one time. Make sure you are in the aragon-dao-webapp directory when running this command:
pm2 start npm --name 'aragon-dao-webapp' -- run build
The server should now be running.
Save the configuration for startup:
pm2 startup
View app status:
pm2 status
Show live logs from PM2:
pm2 logs
In production, export an environment variable NODE_ENV
before running the application:
export NODE_ENV="production"
node app.js
The elimu.ai Community DAO is empowered by Aragon. Aragon gives internet communities the power to freely organize and collaborate without borders or intermediaries.