Skip to content

A workshop exercise to create a chat bot that lets a user signs up, logs in, lists wallets, sends and requests funds.

Notifications You must be signed in to change notification settings

Enigmatic331/omg-paybot-exercise

Repository files navigation

OMG PayBot

The exercise version of the OMG PayBot workshop sample app.

The workshop slides can be found at ewallet-workshop.pdf.

This exercise is built with React Simple Chatbot. Learn more at LucasBassetti/react-simple-chatbot.

Screenshot of PayBot

Prerequisites

Setup the eWallet server locally following instructions here.

Then start it using:

$ ENABLE_STANDALONE=true \
  BASE_URL=http://localhost:4000 \
  REDIRECT_URL_PREFIXES=http://localhost:3000 \
  CORS_ORIGIN=http://localhost:3000 \
  mix omg.server

The URL http://localhost:3000 should point to the address where your OMG PayBot will be served from.

Setup

  1. Install node (https://nodejs.org/en/download) and yarn (https://yarnpkg.com/en/docs/install)

  2. Install yarn dependencies

$ yarn install
  1. Duplicate src/configSample.js to src/config.js and update the configuration for your setup.
$ cp src/configSample.js src/config.js

The apiKey can be retrieved from the admin panel. Login and navigate to the API section, then generate a new client API or take an existing one.

  1. Start the server
$ yarn start
  1. Your task, if you choose to accept, is to complete this chatbot by using the right endpoints and passing the correct key/values to the request header and body. Good luck!

About

A workshop exercise to create a chat bot that lets a user signs up, logs in, lists wallets, sends and requests funds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages