Skip to content

klode/ritmo-allegro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ritmo Allegro App

An Angular application I wrote to experiment with Twitter authentication, Twitter API, and Heroku deployment.

The app has a landing page where the user can sign-in using his twitter-account credentials. Once logged-in the user is redirected to a page that shows a list of 10 twitter subjects which are currently the most popular worldwide. The right panel has a list of twits for the selected subject.

The Stack

Live App

https://ritmo-allegro.herokuapp.com

Initial Setup

Make sure you complete these steps before running the application

#####(1) Create a Twitter application In order to use Twitter authentication, you must first create an application at Twitter Developers. When created, an application is assigned a consumer key and consumer secret. Your application must also implement a callback URL, to which Twitter will redirect users after they have approved access for your application.

#####(2) Set environment variables Create the following environment variables and set them equal to consumer_key, consumer_secret, and callback_url of the Twitter application you just created in step (1). Also set your cookie and session secrets.

  • TWITTER_CONSUMER_KEY
  • TWITTER_CONSUMER_SECRET
  • TWITTER_CALLBACK_URL
  • COOKIE_SECRET,
  • SESSION_SECRET,

Run Locally

Make sure you have Node.js installed.

$ npm install
$ bower install
$ grunt dist
$ node dist/server.js

The app should now be running on localhost:5000.

Deploy to Heroku

Make sure you have the Heroku Toolbelt installed.

$ cd dist/
$ heroku create the-app-name
$ git push heroku master
$ heroku open

The app should now be running on https://the-app-name.herokuapp.com

Documentation

For more information about using Twitter auth and api.

For more information about using Node.js on Heroku, see these Dev Center articles:

About

Angular front-end and Node back-end with Twitter auth, Twitter API, and Heroku deployment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published