Skip to content

Instantly share code, notes, and snippets.

@geleeroyale
Last active July 17, 2020 11:17
Show Gist options
  • Save geleeroyale/6283549c469f2fa89fc059f936c59002 to your computer and use it in GitHub Desktop.
Save geleeroyale/6283549c469f2fa89fc059f936c59002 to your computer and use it in GitHub Desktop.
Detailed instructions for setting up https://github.com/topiahq/impact-graph with giveth-2

Impact graph for Giveth2

These instructions were executed on Ubuntu 18.04 but should stay the same regardless of operating system (ymmv).

Install Prerequisites

Install impact-graph from GitHub

git clone git@github.com:topiahq/impact-graph.git
cd impact-graph
npm i
cp .env.example .env

Create a database and user in postgres using psql

i.e. follow this tutorial https://medium.com/coding-blocks/creating-user-database-and-adding-access-on-postgresql-8bfcd2f4a91e)

to do something like this:

sudo -u postgres psql
postgres=# create database mydb;
postgres=# create user myuser with encrypted password 'mypass';
postgres=# grant all privileges on database mydb to myuser;

Get environment variables

For more information about a local development environment please ask in the giveth2 dev channel - i.e. in telegram, discord or (https://riot.im/app/#/room/!zFyfjCfKHawjZJcueK:matrix.org?via=matrix.org)[Riot.im].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment