• Stars
    star
    125
  • Rank 286,335 (Top 6 %)
  • Language
    JavaScript
  • Created almost 11 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Part 5 of a realtime SMS/Voice voting application powered by Node, CouchDB, AngularJS and Twilio

Wrapping Up Votr: AngularJS and CRUD with RESTful APIs

This is the companion repo for the fifth and final part in a series of blog posts about building a real-time SMS and voice voting application using Node.js. It’s been illuminating to walk through the process of building an app that I needed using technologies that I was new to. Let’s take a moment and recap where we’ve been.

In part one, we created the Node application and captured incoming votes over SMS and stored them in a CouchDB. I chose to use Express as the web framework and Cloudant and my CouchDB provider.

In part two, we created a real-time visualization of the voting using Socket.io and Highcharts. As votes came in a bar chart depicting the current state of the vote would update in realtime. For my purposes (live SMS voting at events) this was my MVP product. But, at larger events I ran into some nasty scaling issues.

In part three, we tweaked our app to scale to thousands of votes per second and millions of total votes. This was accomplished by being smarter about how we stored our documents and leveraging CouchDB’s map/reduce capabilities.

In part four we began adding an web front-end for admins using AngularJS. We got added AngularJS to our project and implemented a login and logout flow. I showed you the end-to-end flow of how log-in works: user fills out a form, AJAX request is made to the Node server, HTTP request is made to CouchDB, and the result of the operation is returned up the stack.

The last thing for us to do to complete this admin portion of the application is to use AngularJS to create a simple CRUD interface for the events in our CouchDB. We’re going to focus on the AngularJS code and templates that we’re going to write to edit our event documents. We’ll finish with a brief run-through of the server-side code. But for now just assume that we’re working with a RESTful API, just like in the authentication scenario in Part 4.

Meta

  • No warranty expressed or implied. Software is as is.
  • MIT License
  • Brought to you by Twilio Seattle

More Repositories

1

gifit

Convert videos into animated gifs using Node, libav and imagemagick
JavaScript
63
star
2

seattlehacks

Code & website for http://seattlehacks.com
Ruby
43
star
3

votr-part1

Part 1 of building an SMS voting app using Node.js
JavaScript
37
star
4

ff-draft-app

Fantasy Football Draft Room - powered by Twilio
JavaScript
30
star
5

twilio-rails-demo

Some simple examples on how to integrate Twilio into your Rails app
Ruby
29
star
6

votr-part4

Building a Real-time SMS Voting App Part 4: Adding a Front-end with AngularJS
JavaScript
28
star
7

carwingsjs

Node bindings for the Nissan Leaf Carwings API
JavaScript
21
star
8

community-toolkit

This repo contains information, links & resources related to organizing community events. Contributions wanted!
19
star
9

votr-part2

Part 2 of building an SMS voting app using Node.js
JavaScript
14
star
10

votr-part3

Part 3 of building an SMS voting app using Node.js
JavaScript
13
star
11

twilio-rails-4

Simple example of integrating Twilio with a Rails 4 web app
Ruby
12
star
12

phonestagram

Easily text photos to a phone number, apply a filter and have them posted online in realtime
JavaScript
11
star
13

twilio-webrtc-node

Having some fun with Twilio, WebRTC and Web Audio on Node
JavaScript
10
star
14

1x1

Generate a 1x1 pixel GIF of any color you like!
JavaScript
8
star
15

node-hapi-twilio-part1

This is the code repo for Part 1 of my tutorial on building a Node app using the Hapi web framework.
JavaScript
6
star
16

twilio-webrtc-webaudio

JavaScript
6
star
17

twilio-php-raffle

Simple raffle app that illustrate some of the core capabilities of Twilio.
PHP
4
star
18

glyphr

Transcodes words like "heart" into Unicode characters like ♥.
JavaScript
4
star
19

carter.rabasa.com

A website for Carter Rabasa
Astro
3
star
20

twilio-box

A Twilio app that lets people interact with the Voicebox API using SMS
JavaScript
3
star
21

twilio-node-raffle

Using Twilio & Node to run a simple raffle!
JavaScript
2
star
22

win8-js-rest-boilerplate

Win8 JS library boilerplate for REST services
JavaScript
2
star
23

twiliosig

Node module for making sure HTTP requests are really coming from Twilio
JavaScript
2
star
24

twilio-copter

Fly a Parrot AR Drone by placing a phone call. Crazy stuff.
JavaScript
2
star
25

Twitter2FF

A simple GAE web app that tries to sync your Twitter and FriendFeed friends
Python
2
star
26

twilio-rails-pusher

A simple Twilio/Rails/Pusher app.
Ruby
2
star
27

twilio-jsconf2012

The JSConf 2012 Hotline app - powered by Twilio
JavaScript
2
star
28

cf-worker-astradb

JavaScript
2
star
29

twilio-client-token

Create Twilio Client capability token for Node.js apps
JavaScript
1
star
30

node-voicebox

voicebox api
JavaScript
1
star
31

pdxjs-oct

Node.js + Socket.io + Twilio = FUN!
JavaScript
1
star
32

flask-restful-todo

A simple TODO app built using Twilio, Flask, Flask Restful & LevelDB.
Python
1
star
33

Twitter2Mail

A Google AppEngine application that allows users to recieve their @replies via email
1
star
34

twilio-webrtc-ruby

A presentation and some code on having fun with Twilio, Sinatra, WebRTC and WebAudio.
JavaScript
1
star
35

twilio-win8

JS library for accessing the Twilio REST API on Windows 8
1
star
36

couchdb-win8

CouchDB JS library for Windows 8
JavaScript
1
star
37

twilio-mms-tag

Play tag using your phone!
Python
1
star
38

hfsg-nmc

Hacking for Social Good - NMC
JavaScript
1
star
39

win8-bootstrap

Windows 8 Bootstrap for HTML5 Metro apps
1
star
40

nextjs-boilerplate

TypeScript
1
star