Giter Site home page Giter Site logo

tweedegolf / pinterest-slider Goto Github PK

View Code? Open in Web Editor NEW
5.0 7.0 1.0 55 KB

Slideshow of all images in a Pinterest board. After logging in, you can select a public board and the app displays all images in that board one after each other by using a short cross-fade between 2 consecutive images.

CSS 13.08% HTML 3.04% JavaScript 81.32% Ruby 2.57%

pinterest-slider's Introduction

Pinterest Image Slider

A simple application that lets you log in to your Pinterest account and fetches all your public boards. Then you can select a board and set the time each image will be displayed, After pressing the 'start' button an infinite slideshow containing all images in that board will start. Between the consecutive images a short cross-fade is displayed.

  1. Login to Pinterest and allow the app to read your public boards
  2. Your public boards will be displayed in a drop down menu
  3. After selecting a board you can optionally adjust interval setting
  4. Press 'start' and the app starts displaying all images in the chosen board
  5. The slide show loops: after the last image the show will start again with the first image

Installation

This application is made with React and 3 different techniques for state management: Flux, Redux and Relay/GrahpQL. Each version is put in their own folder, to install and run a version:

  • cd to the folder of the version that you want to run
  • npm install install all dependencies
  • npm run watch starts watchify
  • npm run build builds and minifies the code and generates a source map
  • start a local webserver npm run start-ssl
  • for the Relay/GraphQL version only: if you change something in the file /data/schema.js you might need to run npm run update-schema as well

Note that the Pinterest API requires a https connection, so you have to start a local webserver with a key and a certificate:

ws --key server.key --cert server.crt

For generating a key and a certificate read the information on npm.

Linux users might value this information on Stackoverflow about getting Chrome to accept self-signed certificates.

Setting up your own app

The key in the code only works for https://localhost:8000. Should you wish to run the application from a different domain please use your own key. Consult the developer documentation on the Pinterest site.

pinterest-slider's People

Contributors

abudaan avatar

Stargazers

 avatar Doldamul avatar Michael avatar Rubén G. avatar Vincent Moore avatar

Watchers

Ruben Nijveld avatar  avatar James Cloos avatar Marlon avatar Erik Jonkers avatar  avatar  avatar

Forkers

shimilbi

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.