A voting app built using React, MobX and Cosmic JS
JavaScript HTML
Latest commit 5e64162 Sep 10, 2016 @tonyspiro tonyspiro committed on GitHub Update webpack.config.js
Failed to load latest commit information.
components vote counted fix Aug 15, 2016
.babelrc πŸš€ Aug 11, 2016
.gitignore πŸš€ Aug 11, 2016
CHECKS πŸš€ Aug 11, 2016
README.md readme edits Aug 15, 2016
bucket.json πŸš€ Aug 11, 2016
config.js πŸš€ Aug 11, 2016
package.json added react router for smoother view loading Aug 13, 2016
server-dev.js πŸš€ Aug 11, 2016
server.js πŸš€ Aug 11, 2016
webpack.config.js Update webpack.config.js Sep 10, 2016
webpack.dev.config.js πŸš€ Aug 11, 2016


Voting App

alt text

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.

Getting started

git clone https://github.com/cosmicjs/cosmicapp-voting-app
cd cosmicapp-voting-app
npm install
Run in development with hot reloading
npm run development
open http://localhost:3000
Run in production connected to default bucket
npm start
open http://localhost:3000

Create Your Own Polls

It's easy to create your own polls. All you have to do is:
1. Create a bucket on Cosmic JS.
2. Find the Voting App in the Apps section of your bucket.
3. Install the voting app.
4. Deploy your app to the web

Run in production connected to your bucket
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.