Giter Club home page Giter Club logo

viaplay_middle's Introduction

Programming test for Viaplay

Framework

This web application has been mode using Middleman, HAML, SCSS for styling and Javascript.

Test are in the form of basic Acceptance tests using RSpec.

Middleman was chosing because it is a light weight framework for building static web applications.

Live version

To see the web application only visit

Go to site

Deployed with Netlify and GitHub

Local version

To see the application locally, clone the source code from the Git repository Source code

In the terminal run bundle install to setup the application.

To get a local server running with the application run middleman server and visit http://localhost:4567/ in your browser.

For a guide to install Middleman, see the official documentation Middleman

Source code

To see the source code visit the Git repository Source code.

/source contains the main website source files including Javascript and styling.

/source/javascripts/api.js contains the Javascript for fetching the data to display the series on the page.

/source/javascripts/content.js is responsible for fetching the data about each serie.

const proxyURL = 'https://cors-anywhere.herokuapp.com/'; was used to solve problems with fetching and displaying the data from the API

/layouts contains the basic layout of the site. It uses partials located in /partials to render the header and footer of the site. The = yield renders the content of index.html.haml and other HAML-files in the /source directory

/stylesheets contain the styling for the site. For a better overview the styling is divided up into the partials maincontent.css.scss and series.css.scss and imported to all.css.scss

/spec/ contain the testing framework. The "spec"-files contains the tests and user_sees_content_on_landingpage contains basic User stories for builing the application

Tests

To see tests run rspec in your terminal from the root directory

Notes and comments

Only the first serie "Grey's Anatomy" has a working info-page when clicking on the image. This is done just to illustrate the idea behind the application. In retrospective another framework should have been chosen (e.g. Ruby on Rails), to make it easier to show the information for each serie in a single view. For example not the have a view / html-file for each serie.

No navigation using arrowkeys was implemented.

viaplay_middle's People

Contributors

andycutter avatar

Watchers

 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.