lynx12345 / code-academy-project-expresso

Unit 6 - final project - expresso
0 stars 0 forks source link

Expresso

Project Overview

In this capstone project, you will build all of the routing and database logic for an internal tool for a coffee shop called Expresso.

The Expresso internal tool should allow users to:

You can view all of this functionality in action in the video below:

How To Begin

To start, download the starting code for this project here. After downloading the zip folder, double click it to uncompress it and access the contents of this project.

To view your local version of the site, open index.html in Google Chrome.

Implementation Details

To complete this project, you will need to create the database tables and API routes specified below.

To test this functionality you can run the testing suite and interact with the API via the provided front-end. If you want more data to interact with in the front-end, you can run the seed.js file to add data to your database.

We've provided an empty migration.js file for you to write table creation logic in.

In order for the tests and provided front-end to run properly, you will need to make sure to:

Database Table Properties

Route Paths and Functionality

/api/employees

/api/employees/:employeeId

/api/employees/:employeeId/timesheets

/api/employees/:employeeId/timesheets/:timesheetId

/api/menus

/api/menus/:menuId

/api/menus/:menuId/menu-items

/api/menus/:menuId/menu-items/:menuItemId

Testing

A testing suite has been provided for you, checking for all essential functionality and edge cases.

To run these tests, first, open the root project directory in your terminal. Then run npm install to install all necessary testing dependencies (if you haven't already). Finally, run npm test. You will see a list of tests that ran with information about whether or not each test passed. After this list, you will see more specific output about why each failing test failed.

As you implement functionality, run the tests to ensure you are creating correctly named variables and functions that return the proper values. The tests will additionally help you identify edge cases that you may not have anticipated when first writing the functions.