A simple voting application built with
- Vendia - SasS block-chain backend
- AWS AppSync - API service as middleware
- AWS Lambdas - Serverless compute for AppySync GraphQL resolvers
- React - React App
Contains all Vendia configuration files for creating and managing Vendia Universal Apps (Unis).
Information about the CLI is available at Vendia's document site.
We use a middle layer to expand on the Vendia generated API. This allows our react app to have simplified GraphQL operations.
A React JS app that allows a user to cast votes.
-
Sign up for a Vendia account.
-
Install the Vendia CLI
% npm install @vendia/share-cli -g
-
Update
vendia/registration.json
to have a unique Uni name and your userId.- Prefix your Uni name with
test-
so that Vendia treats it as a test/development Uni
- Prefix your Uni name with
-
Create the Vendia Uni
% share uni create --config vendia/registration.json
-
Create an AppSync API from
scehama.graphql
. -
Create Lambdas for each folder under
/lambdas
. -
Within the AppSync console, wire the Lambdas to the appropriate resolvers.
-
Update the
apiUrl
andapiKey
in/app/src/config.js
. -
From
/app
runyarn install
thenyarn start