Make sure that MESG Engine is installed and running on your computer. You can run the following command to install and start the Core:
npm install -g @mesg/cliDownload the source code of the application. You can clone this repository by using the following command:
git clone https://github.com/antho1404/pegasys-hackathon.git
Copy the .env.example to .env.
This file contains required configurations needed for the application.
You need to replace the ... by the right value.
mesg-cli process:dev application.yml \
--env PROVIDER_ENDPOINT=$PROVIDER_ENDPOINT \
--env PRIVATE_KEY=$PRIVATE_KEY \
--env SENDGRID_API_KEY=$SENDGRID_API_KEY \
--env CONTRACT_ABI=$CONTRACT_ABI \
--env CONTRACT_ADDRESS=$CONTRACT_ADDRESSreplace data at the script.js file in ui folder:
const data = JSON.stringify({
from: '__FROM_EMAIL_HERE__',
to: '__TO_EMAIL_HERE__',
subject: '__SUBJECT_HERE__',
text: '__TEXT_HERE__'
})To run the website:
docker build ui -t on-demand-payment
docker run -d -p 8080:80 on-demand-paymentYou can access the website at the address 127.0.0.1:8080.