GlobalMustard/SocialSync — pull request #11 by jeffvan576 (2014-09-03 19:42:31+00:00)
Title: (feat) adds server to app

Hey guys, this is the proposed server. It's all in one file for now for the sake of keeping it compact but we can (and should) abstract it out very easily once we decide if we like the flow.

I outlined the entire file in our wiki - read this before you try to get the server running:
https://github.com/GlobalMustard/SocialSync/wiki/Server-Info

Quick mentions:
1) Authentication works great but until we narrow in on local storage I had to create two temporary variables in the server.js file to hold the token and secret (tempToken and tempSecret). This obviously can't stay the way it is but until we are sure we are using localstorage and not a DB I have to keep it that way. Brandon - once you start connecting the pieces please remove these.
2) API endpoints - I only opened up 2 endpoints for now. One is an oauth authorization endpoint for twitter, the other is /twit which is a get request for the logged in user's user_timeline. I can open more later very easily but for now let's stick with user messages for MVP.

All installation requirements are in the wiki. I tested this pretty heavily but if you guys come across any bugs or problems let me know. I believe it's in a near enough state to pass back and forth the information that we need to get the MVP up and running. Don't hesitate to change anything and again, read that wiki to get you started.