A prototype of online social welfare platform on Ethereum Blockchain.
This platform is a prototype of online service, where people can create any geo-bound initiatives (like planting flowers, cleaning garbage, etc), vote for them, crowdfund or complete them.
This project is under development.
To set up the development project, you have to have NodeJS v8+ installed. First, clone and initialize the repository:
git clone --recursive https://github.com/ZitRos/initiative-society
cd initiative-society
npm run init
If you have problems (most likely on Windows) when executing npm run init
, try installing required
build tools with npm install --global windows-build-tools
.
Then you need to launch 3 different servers: backend (GraphQL), frontend (Angular) and Truffle emulated network. Launch them in different terminal windows and do not close them. Follow the instructions below to do so.
For testing, you can launch the developer's test Ethereum network (prefix the next command with
win-
on windows):
npm run win-testnet
In the prompt, type migrate
and do not close this console/terminal.
Static backend serves large files and content, checksum of which is recorded into the Blockchain, so the client always knows whether that content is not tampered.
To run the server, do the following:
npm run server
When the server is run for the first time, it will populate some data to the test network.
Run the following:
npm run start
This will start an angular frontend app. After this, navigate to http://localhost:4200. Boom!