Giter Site home page Giter Site logo

jsdom-flatdango-practice-challenge's Introduction

Flatdango

Flatiron Movie Theater is open for business! You will be building out an application, Flatdango, that allows a user to purchase movie tickets from the theater.

Demo

Example

Setup

  • Fork and clone this repository.
  • Open index.html in your browser.
  • Run json-server --watch db.json to start the backend.

Endpoints

Your base URL for your API will be: http://localhost:3000

The endpoints you will need are:

  • GET /films/[:id] (start with /films/1)
  • PATCH /films/[:id]
  • GET /films (for Advanced Deliverables only)

Core Deliverables

As a user, I can:

  • See the first movie's details, including its poster, title, runtime, showtime, and available tickets (the number of tickets left will need to be derived from the theater's capacity and the number of tickets sold)
  • Buy a ticket for a movie. The number of tickets sold for that movie should be persisted, and I should be able to see the number of available tickets decreasing on the frontend.
  • I should not be able to buy a ticket if the showing is sold out.

Advanced Deliverables:

These deliverables are not required to pass the code challenge, but if you have extra time, you should attempt them! They are a great way to stretch your skills.

If you're going to attempt the advanced deliverables, make sure you have a working commit with all the core deliverables first!

As a user, I can:

  • See a menu of all movies on the left side of the page.
  • Click on a movie in the menu to replace the currently displayed movie's details with the new movie's details.
  • Buy a ticket for any movie and update the tickets sold for that movie, not just the first.
  • Indicate in the menu which movies are sold out.

Example

Styling

Semantic Ui is loaded into this project via a link tag in the head of the html. Some extra styling is also included in assets/index.css. Styling is built in for the base deliverables.

Styling for advanced deliverables:

The listed films should be added to the div with an id of films. Here is sample styling for the film list items:

  <div class="film item">(Title of film)</div>
  <div class="sold-out film item">(Title of a sold-out film)</div>
  <div class="film item">(Title of film)</div>

jsdom-flatdango-practice-challenge's People

Contributors

raaynaldo avatar marcmajcher avatar

Watchers

James Cloos 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.