rjdny / B5-Test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Core JavaScript Skills Assessment

This project will help you assess your ability to apply the JavaScript skills that you practiced in this book.

  1. Functions
  2. Modules
  3. Iteration
  4. Objects
  5. Arrays
  6. Handling browser generated events
  7. Generating custom events
  8. Handling custom events
  9. State management
  10. Displaying state as HTML
  11. User input with radio options

You will be building an application for a local food truck that offers food that is a fusion of American Southern and Greek cuisines.

A customer should be able to choose a base dish, a vegetable, and a side dish and place their order. Once the order is placed, the total amount for the chosen foods will appear at the bottom.

Requirements

  1. All 10 base dishes should be displayed as radio input options.
  2. All 9 vegetables should be displayed as radio input options.
  3. All 6 side dishes should be displayed as radio input options.
  4. When the user selects an item in any of the three columns, the choice should be stored as state in your database.
  5. When a user selects all three options and click the "Purchase Combo" button, a new sales object should be...
    1. Stored as state in the database.
    2. Represented as HTML below the Monthly Sales header in the following format exactly. Your output will not have zeroes, but the actual amount.
      Receipt #1 = $00.00
  6. The user's choices should be cleared from the database state once the purchase is made.

Design

Given the description and animation above...

  1. Create an ERD for this application before you begin.
  2. Make a list of what modules need to be created to make your application as modular as possible.

Discuss these with your teammates, and then talk to an instructor to review your decisions. Be prepared to defend why you made your choices.

Once an instruction reviews and approves your ERD and ideas about components, an invitation link will be provided to you to start the assessment.

Setup

Your instruction team will provide a link for you to create your assessment repository. Once your repo is created, clone it to your machine.

  1. Make sure you are in your workspace directory
  2. git clone {github repo SSH string}
  3. cd into the directory it creates
  4. npm install to install the testing library in your project
  5. code . to open the project code
  6. Use the serve -p 8080 command to start the web server
  7. Open the URL provided in Chrome
  8. Run npm test in a separate tab from your server. The tests will fail. Write awesome code to make the tests pass

Make sure your Developer Tools are open at all times while working on this project. Use the messages provided in the Console to determine what code needs to be fixed or implemented, and use breakpoints in the Sources tab to step through your code as you debug.

Deep Learning

Another reminder from the instruction team. This is NOT A TEST. We are not looking for 100% completion, although if you can make it work completely, then huzzah for you.

What we are looking for is effort, critical thinking about the concepts, creative thinking to bind the concepts together for a solution, and collaboration with your teammates and instruction team.

If you only get 50% of it complete, but display the above Core Skills and can demonstrate understanding of the fundamental code concepts, then you are learning and growing - which is what we care about.

About


Languages

Language:JavaScript 84.1%Language:CSS 13.0%Language:HTML 2.9%