{"id":23307300,"url":"https://github.com/simonapiz/expresso","last_synced_at":"2026-04-12T07:32:58.796Z","repository":{"id":207140265,"uuid":"718117718","full_name":"SimonaPiz/Expresso","owner":"SimonaPiz","description":"Build a full back-end CRUD API for Expresso, a local café.","archived":false,"fork":false,"pushed_at":"2023-11-14T09:12:52.000Z","size":525,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T09:38:35.188Z","etag":null,"topics":["api","api-rest","codecademy-solutions","express","javascript","router","routes","sqlite-database","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SimonaPiz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-13T12:21:46.000Z","updated_at":"2023-11-14T09:15:48.000Z","dependencies_parsed_at":"2023-11-14T10:26:34.287Z","dependency_job_id":"dd6bec40-2fd9-4ba2-b85d-0b5d1b35f849","html_url":"https://github.com/SimonaPiz/Expresso","commit_stats":null,"previous_names":["simonapiz/expresso"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SimonaPiz/Expresso","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonaPiz%2FExpresso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonaPiz%2FExpresso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonaPiz%2FExpresso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonaPiz%2FExpresso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimonaPiz","download_url":"https://codeload.github.com/SimonaPiz/Expresso/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonaPiz%2FExpresso/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31707953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-rest","codecademy-solutions","express","javascript","router","routes","sqlite-database","sqlite3"],"created_at":"2024-12-20T12:29:52.592Z","updated_at":"2026-04-12T07:32:58.782Z","avatar_url":"https://github.com/SimonaPiz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"https://github.com/SimonaPiz/Expresso/blob/main/favicon.png\" width=\"20px\" alt=\"Expresso icon\" title=\"Expresso icon\"/\u003e Expresso\n\n\u003e Build a full back-end CRUD API for Expresso, a local café.\n\n\u003cimg src=\"https://github.com/SimonaPiz/Expresso/blob/main/PreviewExpresso.png\" width=\"600px\" alt=\"preview\" title=\"preview\"/\u003e\n\n## Table of Contents\n* [Project Overview](#project-overview)\n* [Implementation Details](#implementation-details)\n* [Testing](#testing)\n* [Screenshots](#screenshots)\n* [Technologies Used](#technologies-used)\n* [Setup](#setup)\n* [Acknowledgements](#acknowledgements)\n* [Author](#author)\n\n## Project Overview\n\nIn this capstone project, I build all of the routing and database logic for an internal tool for a coffee shop called Expresso.\n\nThe Expresso internal tool should allow users to:\n- Create, view, update, and delete menus\n- Create, view, update, and delete menu items\n- Create, view, update, and delete employees\n- Create, view, update, and delete employee's timesheets\n\nYou can view all of this functionality in action in the video below: [▶](https://s3.amazonaws.com/codecademy-content/programs/build-apis/solution-videos/Expresso480.mov)\n\n## Implementation Details\n\nTo complete this project, I needed to create the database tables and API routes specified below.\n\n- [x]  Setup\n  - Setup Project\n  - Setup Server. Create and export the Express app\n  - Create and export API Router for `/api`\n\n  ✔ [#2 issue](https://github.com/SimonaPiz/Expresso/issues/2)\n\n\n- [x]  Create Database Tables\n\n  ✔ [#3 issue](https://github.com/SimonaPiz/Expresso/issues/3)\n\n\n  - **Employee**\n    - id - Integer, primary key, required\n    - name - Text, required\n    - position - Text, required\n    - wage - Integer, required\n    - is_current_employee - Integer, defaults to `1`\n\n  - **Timesheet**\n    - id - Integer, primary key, required\n    - hours - Integer, required\n    - rate - Integer, required\n    - date - Integer, required\n    - employee_id - Integer, foreign key, required\n\n  - **Menu**\n    - id - Integer, primary key, required\n    - title - Text, required\n\n  - **MenuItem**\n    - id - Integer, primary key, required\n    - name - Text, required\n    - description - Text, optional\n    - inventory - Integer, required\n    - price - Integer, required\n    - menu_id - Integer, foreign key, required\n\n- [x]  Create Route Paths\n\n  ✔ [#4 issue](https://github.com/SimonaPiz/Expresso/issues/4)\n\n  **/api/employees**\n    - GET\n    - POST\n\n  **/api/employees/:employeeId**\n    - GET\n    - PUT\n    - DELETE\n\n  **/api/employees/:employeeId/timesheets**\n    - GET\n    - POST\n\n  **/api/employees/:employeeId/timesheets/:timesheetId**\n    - PUT\n    - DELETE\n\n  **/api/menus**\n    - GET\n    - POST\n\n  **/api/menus/:menuId**\n    - GET\n    - PUT\n    - DELETE\n\n  **/api/menus/:menuId/menu-items**\n    - GET\n    - POST\n\n  **/api/menus/:menuId/menu-items/:menuItemId**\n    - PUT\n    - DELETE\n\n\n## Testing\n\nA testing suite has been provided. \n\n  ✔ All Test Passed\n\n  ![Test Results](https://user-images.githubusercontent.com/91121660/282711903-fc748408-0470-493e-a819-45340af0783b.png)\n\n## Screenshots\n\n\u003cimg src=\"https://github.com/SimonaPiz/Expresso/assets/91121660/7b601c3f-72cc-4f83-8b21-1b53885d7819\" width=\"600px\" alt=\"dinner preview\" title=\"dinner preview\"/\u003e\n\n\u003cimg src=\"https://github.com/SimonaPiz/Expresso/assets/91121660/17bce7d6-082b-4be8-93d2-d6dc927f54e7\" width=\"600px\" alt=\"employee preview\" title=\"employee preview\"/\u003e\n\n\n## Setup\nIn the root directory of the project run\n```\n$ npm  install\n```\nTo view a local version of the site, open **index.html** in the browser.\n\n## Technologies Used\n  - React 15\n  - react-router-dom 4\n  - mocha 10\n  - chai 4\n  - express 4\n  - sqlite3 5\n  - body-parser 1\n  - cors 2\n  - errorhandler 1\n\n## Acknowledgements\n\nThis project comes from the [Codecademy's Create a Back-End with JavaScript](https://www.codecademy.com/learn/paths/create-a-back-end-app-with-javascript) course.\n\n## Author\n\n- [Simona Pizio](https://github.com/SimonaPiz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonapiz%2Fexpresso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonapiz%2Fexpresso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonapiz%2Fexpresso/lists"}