Giter Site home page Giter Site logo

wordcamp-london-2016-coding-challenge's Introduction

##Time Inc. Wordcamp London 2016 Coding Challenge

How to Enter!

Fix this broken wordpress plugin to enter into a draw for a Raspberry Pi 3 or 6 months Spotify sub.

Enter here: http://j.mp/TimeUKCodeComp

It is a sample Echo.js based lazy load plugin for WordPress with some failing tests, see if you can fix them and send us a PR to win a Raspberry Pi 3 or 6 months Spotify subscription. Don't worry if you can't get them all passing, just send us your best effort.

It is built using the WordPress coding standards, is designed to be very lite weight on system resources.

Good Luck!!!

How to run the tests

You should be able to run the tests using a few simple steps, if you need a hand here is a quick guide to running the tests:

  1. Ensure you have all the dependencies, at a minimum you will need:
  • git
  • subversion
  • phpunit
  • php5
  • mysql server
  1. Checkout the code from github
  2. Setup the tests be executing ./tests/bin/install-wp-tests.sh timeinc-wp-coding-challenge root MYSQLPASSWORD localhost 4.4.2 repalcing MYSQLPASSWORD with your root password or just type '' if you don't have one
  3. Run the tests by executing phpunit

Running on a new DigitalOcean Droplet

This guide is based on using the 14.04.4 Digital Ocean image, use the $5 size and any location to create it. This droplet is only intended for the coding challenge, always remember to set a password for the MySQL root user!

  1. Create a Digital Ocean droplet
  2. Login to your new server
  3. Update the server by executing the command apt-get update
  4. Install required applications by executing the command apt-get install -y git subversion phpunit php5 php5-mysql mysql-server-5.5 Don't set a root mysql password (just press enter)
  5. Setup your github.com SSH key
  6. Fork https://github.com/TimeIncOSS/wordcamp-london-2016-coding-challenge
  7. Checkout the code by executing the command git clone [email protected]:YOURGITHUBUSERNAME/wordcamp-london-2016-coding-challenge.git
  8. Change into your checkout by executing the command cd wordcamp-london-2016-coding-challenge/
  9. Install dependencies be executing the command ./tests/bin/install-wp-tests.sh timeinc-wp-coding-challenge root '' localhost 4.4.2
  10. Run the tests by executing the command phpunit
  11. Fix the tests (you're on your own here but feel free to ask us for help!)
  12. Commit and push your shiny bug free code
  13. Send us a Pull Request
  14. ...
  15. Profit!
  16. Don't forget to destroy your droplet to avoid incurring unnecessary charges

Disclaimer

This plugin is for the Wordcamp London 2016 Coding Challenge and will be removed on 1st May 2016.

DO NOT USE THIS PLUGIN FOR PRODUCTION SYSTEMS ;-)

License

The Echo.js Lazy Load is licensed under the GPL v2 or later.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

wordcamp-london-2016-coding-challenge's People

Contributors

tomsinger avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tomsinger phlbnks

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.