A serverless polling web app using Skygear as cloud database. https://reactdinnerpoll.skygeario.com/static/
Skygear features demonstrated:
- User Authentication: Sign in/up/out
- Cloud Database
- Basic CRUD: CRUD a vote
- PubSub: Hot reloading when others voted
- Cloud Functions
- Raw SQL execution
- Trigger by Client SDK
opin JS cloud code (index.js)lambdain JS SDK (ResultsChart.js)
Development:
git clone https://github.com/skygear-demo/react-dinnerpoll.git
cd dinner-poll
yarn install # npm install, if you are using npm
yarn startDeploying:
yarn build
yarn deploy- Provide the website root URL in the
homepagefield inpackage.jsonto tell React to build the app relatively to it - Rename the
builddirectory topublic_htmlafter building
(This app has already been properly configured)
none