/wellesley

Wellesley Hackathon

Primary LanguageJavaScript

Wellesley Hackathon

This is the code for the Wellesley Hackathon with Twitter Boston.

Dependencies

Instructions

Clone the Repository

git clone https://github.com/mhrheaume/wellesley.git

Generating API Keys

  1. Go to https://apps.twitter.com and log in with your Twitter account.
  2. Click on "Create New App".
  3. Give your application a unique name and description. For the website you can just enter https://www.twitter.com.
  4. Accept the developer agreement and click "Create your Twitter application".
  5. Once the app is created, click on the "Keys and Access Tokens" tab, and then click "Create Access Token" under "Your Access Token".

Configure the App

Open src/main/java/com/twitter/mtv/hackathon/services/TwitterService.java and replace the following variables with the tokens you generated above:

private final String consumerKey = "";
private final String consumerSecret = "";
private final String accessToken = "";
private final String accessTokenSecret = "";

Compile and Run the App

From the root of the repository, build and run the Java app with Maven:

mvn package
mvn exec:java -Dexec.mainClass="com.twitter.mtv.hackathon.App"

Now in a different terminal, install dependencies and bundle the React front end:

cd src/main/resources/js
npm install
npm start

You can then see the app by opening it in a browser:

open http://localhost:8000

Resources