Giter Site home page Giter Site logo

madebyloosers / weblebrity-trumps Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.78 MB

Like a who’s who of the information superhighway websphere, Weblebrity Trumps turns the web's elite into a gamification experience based on social media and internet proliferation.

Home Page: http://weblebritytrumps.com/

JavaScript 66.82% CSS 30.58% Shell 0.67% HTML 1.92%

weblebrity-trumps's Introduction

Weblebrity Trumps

Like a who’s who of the information superhighway websphere, Weblebrity Trumps turns the web's elite into a gamification experience based on social media and internet proliferation.

Front end

Grunt is used to run a developemt server on port 9000 and watch sass files for compilation. Install grunt-cli:

npm install -g grunt-cli

More info on getting started with grunt http://gruntjs.com/getting-started

And then install dependancies:

npm install

Then just run grunt:

grunt

Visit localhost:9000 to view the site.

Updating script

To run the updating script that gets the latest values you need Node (v0.8+)

In terminal navigate to the root of the site and run:

npm install

You need to update the github login credentials with your github API details.

Create a file in the root called node_credentials.js (or symlink one in) and enter:

var exports;
exports.githubAccount = {
    'user': '[username]',
    'pass': '[password]'
};
module.exports = exports;

Then start the information gathering with:

node app.js

This should update the json file used to populate the cards

weblebrity-trumps's People

Contributors

k0ng avatar m-allanson avatar orangespaceman avatar pxg avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

orangespaceman

weblebrity-trumps's Issues

Cache Images and user bio from twitter

Instead of loading images from twitter each time lets cache them locally in the project to try and speed it up. Store paths in JSON output or just name by id?

Also pull twitter bio?

Use the node script to do this and store in the JSON output.

Page height reduction

We should think about reducing the size of the home page circle and the cards so everything fits into an 800px height browser - fairly standard resolution for a lot of laptops...

We could remove the WTF link from the header - we don't have any content for this, and it's referenced in the initial circle anyway.

We could move the 'suggest a weblebrity' to the bottom of the initial page circle

This would allow us to reduce the height of the page header, so we can more easily fit everything in

Update readme

Now the site is (almost) up and running the readme should describe how to get the site set up - see the format of our other readme files for ideas

Implement Booth's FINAL design tweaks

The order in which the computer wins, I don't think is clear. When the computer selects a stat, it should be in the same highlight colour, then the card should turn over.

When the circle flips, there's a momentary pause between it disappearing and it showing again

JSON FIle versioning

In case there is any issues get the node script to name and timestamp the output file and then symlink it to the path for the front end.

This way if the JSON is invalid we can roll back quickly.

Tweak node.js script

Try running the node.js script...

  • Twitter data seems fine
  • Linkedin data seems fine (for those users who have it) - but we should use parseInt to ensure it's a number (e.g. when it receives 500+)
  • Github doesn't seem to retrieve any data (may be a temporary issue?)
  • Lanyrd seems fine
  • Images - get large from twitter
  • Check people with zeros - have we got the correct URLs for them?

We should use parseInt to ensure these values are always treated as numbers - the Lanyrd values aren't at the moment.

Also need to set this to run periodically (once a week?) - e.g. with Node Schedule

Fix initial small circle flip

On the first round the initial card flip animation isn't right. Shouldn't flash up first.

Need to put in a special case for the first round in script.js:WT.updateInfoCircle()

Bio copy

The copy of the bios seems to have slipped down around the buttons.

I think this is why you can't click the buttons any more.

Implement game end screen

Build game end screen and test all permutations.

We have the design already, we just need to build it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.