Vendor app is a web-based Blockchain-based Wallet for Rahat vendors to signup and recieve tokens for beneficiaries.
Important: This project is part of Rahat Project. Please make sure you have setup Rahat service first.
Rahat is a blockchain-based digital relief distribution management platform for humanitarian agencies to support marginalized communities. It issues, manages and monitors relief distribution in the form of digital tokens. It creates a transparent, efficient and cheaper way to distribute cash or goods. It mobilizes the local community encouraging financial resilience and freedom. For more information please visit https://rahat.io.
Rahat’s main features are:
- Dashboard for aid agencies to issue relief tokens to recipients & to onboard local community vendors. Agencies can audit all transactional information real-time.
- Mobile based wallet app for local vendors to initiate & record relief token transaction in a blockchain network & cash transfer from banks.
- A SMS feature for recipients to receive their token and/or assigned digital card with QR code to buy relief products from participating local merchants.
- Transaction data in blockchain network to verify the flow of tokens.
- A platform for local authorities & aid agencies to connect.
This is a web-based mobile-view application/wallet that directly interact with Ethereum blockchain to send transactions. This web-app is designed to work on following environments:
- Node-js --version == 10.18.1
- Yarn --version == 1.21.1
- MongoDB --version >= 4.2.8
To run this software on your machine locally you need to run the following:
- Rahat Server
- Ganache
To setup this applicaion on your machine locally you need to clone this repository to your local machine and create a folder named 'config' on root of this repository. Add two files there
- local.json
{
"app": {
"port": 3700
},
"services": {}
}
- client.json
{
"debugMode": true,
"api": "http://localhost:3800/api/v1",
"web3": {
"networkId": 5777,
"httpProvider": "http://localhost:8545",
"webSocketProvider": "http://localhost:8545"
},
"services": {
"google": {
"clientId": "{from google console}",
"scope": "profile email https://www.googleapis.com/auth/drive",
"ux_mode": "redirect",
"redirect_uri": "http://localhost:3700/setup/google"
}
}
}
To start this application, perform the following steps
- Run Fully working Rahat Server
- Run ganache - It should already be running while you setup your server
- start backend:
yarn start
- start frontend:
yarn client
To deploy this software on production
- you need a fully deployed Rahat Server
- update the rahat server api on ```client.json````
This repository uses eslint to enforce air-bnb coding styles.
Everyone is very welcome to contribute on the codebase of Rahat. Please reach us in Discord in case of any query/feedback/suggestion.
For more information on the contributing procedure, see Contribution.