Skip to content

yazdog8/eventbrite

Repository files navigation

Hello from Eventbrite!

This repository is a boilerplate for you to use as a starting point for your exercise. Feel free to change anything on it, this is here only to speed you up on getting started. If you need to change any configurations or add/remove packages or code feel free to do so.

About this repository

This repo has all the basic dependencies needed to create a React application.

  • It uses NPM to manage javascript dependencies like React and React DOM.
  • It runs Webpack to compile JSX into javascript via Babel
  • It runs Webpack Dev Server to allow on-the-fly re-compilation as you change your .js files for a smooth development experience.
  • Additionally it runs a Express node server to use in case any REST APIs are needed.

To run this repository you will need to have installed

Getting started

Fork the repo and follow the steps below. You'll then push up your solution in your forked repo to submit.

Running the application

To run the application open a terminal on the project root folder and run

$> npm start

This will install all js dependencies, and run the servers.

A browser should open on http://localhost:8080. If not load it manually.

The Express API server runs on http://localhost:3000, but you can more easily access it on http://localhost:8080/api.

Make sure both these ports are available when you run the app.

Files in this Repo

  • package.json: This is the package manifest for the project. It lists the project dependencies and the runnable scripts (like npm start)
  • webpack.config.js: This is the webpack configuration. Describes the compilation process for the .js files. It also contains the webpack-dev-server configuration that allows your changes to be automatically be re-compiled and refreshed on the page while developing.
  • index.html: This is the main page for the app, it loads the javascript and css resources for the app. We provide eds.css, our internal css boilerplate, feel free to remove if not familiarized.
  • src/index.js: The javascript entry point of the app, it only contains logic to render the App main react component.
  • src/App.js: The App main react component, contains a simple example of how to call the API server.
  • server/index.js: The API server logic, runs alongside webpack-dev-server when you run npm start, you can add endpoints if you need. The server will be re-run when you change this file. You might have to refresh the page manually to see the API changes take effect on the app.

Exercise Guidelines

Build a checkout experience! As you know, Eventbrite is an events platform where creators create events and consumers can purchase tickets to those events (the latter is the side you're likely more familiar with). We don't expect you to build out our entire checkout flow, but let's start by building a simple modal for an event where:

  • Step 1:

    • Display the name, date, and event image from the Event object Image of Event Header
    • List the ticket classes available for purchase Image of Tickets
    • Enable a selection of 1-10 tickets per ticket class (you can ignore the min and max on the ticket classes) Image of Ticket Dropdown
    • Dynamically show the tickets being selected
    • Dynamically calculate the Total computed from the cost + fee + tax on the ticket class object Image of Order Summary
  • Step 2:

    • Click the Checkout button Image of Checkout
    • Mock the API POST request to place an order. This should include the name and email of the attendee, the ticket classes, and cost breakdown.
    • Navigate to a confirmation screen once the request is successful
  • Step 3:

    • Think about what one thing you would do to improve the first page of our checkout flow (we'll talk about this more during the TPS). Image of Checkout Flow

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published