A voting app that uses React for UI, MobX for state management, React Router for smooth view transitions, Cosmic JS for the CMS API, React Bootstrap for the frontend framework, Shorti for easy inline styles. View the demo here.
git clone https://github.com/cosmicjs/cosmicapp-voting-app
cd cosmicapp-voting-app
npm install
npm run development
open http://localhost:3000
npm start
open http://localhost:3000
It's easy to create your own polls. All you have to do is:
- Create a bucket on Cosmic JS.
- Find the Voting App in the Apps section of your bucket.
- Install the voting app.
- Deploy your app to the web
COSMIC_BUCKET=your-bucket-slug npm start
open http://localhost:3000
By default the posts are connected to the Cosmic JS bucket voting-app
. Sign up for Cosmic JS to add your own bucket, and edit the config.js
file to point to your bucket.