Giter Site home page Giter Site logo

sf2-technical-test's Introduction

EA Symfony2 Technical Test

Task

  • The task is implement a website that allows the user to login to search the Github repoistories.
  • You have 4 hours to complete the test.
  • Please finish all the items outlined in the Requirements section first, then try to tackle items in the Nice to Haves section if you have time.
  • If you cannot finish the test, please explain why as we are reasonable and realize people have time constraints.

Setup

Requirements

  • You are free to use 3rd party authentication bundle or build your own bundle
  • The login form should have server side validation
  • All pages should be gated by the login page if the user is not login.
  • You are free to use any http client to call out to Github's API
  • Have a search field that allows searching for a GitHub user's repositories. See http://developer.github.com/v3/repos/#list-user-repositories for more info. Call the following API (where USER_NAME is the value typed into the search field):
https://api.github.com/users/USER_NAME/repos
  • Once the search is clicked, the results should show a list of that user's public repositories with each item in a "name/number of watchers" format.
  • The results should be in json format for the view to consume
  • It's not a requirement to style the pages
  • We expect to have unit test code coverage of your code

Nice to Haves

  • When a result is clicked, display an alert box with the repository's ID and the created_at time.
  • Use AngularJS to display the repositories results
  • Extended functionalities where you see fit.

Deliverables

  • Please fork this project on GitHub and add your code to the forked project.
  • Update the README file to include the time you spent and anything else you wish to convey.
  • Send the link to your forked GitHub project to your recruiter.

Good luck!*

Chris Cook's Notes

  • The new login process broke the tests in the ACME DemoBundle, so I have fixed them to follow the new login process

  • I used the user authentication system described in the Symfony docs for my login process

  • Because I cannot (should not) test private functions directly, I could only write one unit test for GitHubAPISearchBundle DefaultController. However I have also written a functional test for this class

  • I did not attempt to impliment Angular.js as I have no experience with it. However, I have implimented the alert box with the id and created_at time.

  • Everything else is working.

  • I spent 3.5 hours on the test.

  • Please note the site was development in the dev environment. http://localhost/app_dev.php/

sf2-technical-test's People

Contributors

clearmediaukltd avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.