These instructions were executed on Ubuntu 18.04 but should stay the same regardless of operating system (ymmv).
git clone git@github.com:topiahq/impact-graph.git
cd impact-graph
npm i
cp .env.example .env
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;
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].