{"id":23317597,"url":"https://github.com/vertocode/ticket-travel","last_synced_at":"2025-04-07T04:30:40.156Z","repository":{"id":220851282,"uuid":"750872692","full_name":"vertocode/ticket-travel","owner":"vertocode","description":"A challenge proposed by the company Just Travel in the interview process for a Frontend Developer position.","archived":false,"fork":false,"pushed_at":"2024-02-04T19:17:28.000Z","size":3864,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T08:52:48.528Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://travel.vertocode.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vertocode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-31T13:48:08.000Z","updated_at":"2024-08-13T20:42:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"d14f34a2-b938-439b-a1ed-6565bbf4cf3c","html_url":"https://github.com/vertocode/ticket-travel","commit_stats":null,"previous_names":["vertocode/ticket-travel"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertocode%2Fticket-travel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertocode%2Fticket-travel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertocode%2Fticket-travel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vertocode%2Fticket-travel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vertocode","download_url":"https://codeload.github.com/vertocode/ticket-travel/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247593937,"owners_count":20963816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-20T16:34:48.195Z","updated_at":"2025-04-07T04:30:40.060Z","avatar_url":"https://github.com/vertocode.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e \u003ca href=\"https://travel.vertocode.com\" target=\"_blank\"\u003eTicket Travel\u003c/a\u003e\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg width=\"150\" src=\"./public/logo.png\"\u003e\n\u003c/p\u003e\n\n## Principal Links\n- [Deployed App 🚀](https://travel.vertocode.com)\n- [Video Demo ▶️](https://www.youtube.com/watch?v=mqPURm2KrIg\u0026t=2s)\n\n## Jump To\n- [Introduction](#introduction)\n- [Features](#features)\n- [Technologies](#technologies)\n- [Installation](#installation)\n- [Folder Structure](#folder-structure)\n- [How to run unit tests](#how-to-run-tests)\n- [How to run e2e tests](#how-to-run-e2e-tests)\n- [How to run lint](#how-to-run-lint)\n- [How to run storybook](#how-to-run-storybook)\n- [License](#license)\n\n## Introduction\n\nTicket Travel is a web application that allows users to book tickets for travel.\n\nIt was created as a challenge project for [JustTravel](https://justtraveltour.com/en) in a selective process.\n\n![Demo Image](./public/demo.png)\n\n## Features\n- This was built following the Figma design provided by JustTravel.\n- Users can see a list of available tickets from API provided by JustTravel.\n- Users can search for specified tickets by Name, or Location.\n- Users can access the details of a ticket.\n- Users can book a ticket clicking on \"Comprar Ingresso\" in the ticket details page.\n- Users can access their booked tickets in the cart menu clicking on the cart button in the header.\n- Users can remove a ticket from the cart.\n- Users can see the subtotal, total price, and installment value of the tickets in the cart.\n- Users can increase the quantity of a ticket booking more than one ticket.\n\n## Technologies\n\n- [React](https://reactjs.org/)\n- [Next.js](https://nextjs.org/)\n- [Redux](https://redux.js.org/)\n- [TypeScript](https://www.typescriptlang.org/)\n- [SASS](https://sass-lang.com/)\n- [Storybook](https://storybook.js.org/)\n- [Vitest](https://vitest.dev/)\n- [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/)\n- [Cypress](https://www.cypress.io/)\n- [ESLint](https://eslint.org/)\n- [MUI](https://mui.com/)\n\n## Installation\n\n1. Clone the repository\n```bash\ngit clone git@github.com:vertocode/ticket-travel.git\n```\n\n2. Install the dependencies\n```bash\nnpm run i\n```\n\n3. (Optional) You can set the environment variables to use the real time dollar value in the header. If it's not set, the application will use a fixed value of R$ 5.53.\n\n```bash \ncp .env.sample .env\n```\n\nOpen the `.env` file and set the `EXCHANGE_RATE_API_KEY` value. You can get it [here](https://www.exchangerate-api.com/).\n\n4. Run the application\n```bash\nnpm run dev\n```\n\n## Folder Structure\n\n| Folder | Description                                               |\n|------------|-----------------------------------------------------------|\n| /app       | The main application folder, where the pages are located.|\n| /components | The components used in the application.                   |\n| /lib       | The application libraries config, as Redux is being used there.|\n| /assets    | The application assets.                                   |\n| /public    | The public folder, where the logo, and images are located.|\n| /hooks     | The application React custom hooks.                       |\n| /utils     | The application utils where we have the common functions. |\n| /styles    | All the application styles.                               |\n| /vitest    | The unit tests.                                           |\n| /cypress   | The end-to-end tests.                                     |\n| /types     | The application types to use with TypeScript.             |\n| /services  | The application services, where we have the API calls.    |\n| /stories   | The Storybook stories.                                    |\n| /.storybook | The Storybook configuration.                              |\n\n# How to run unit tests\n\n```bash\nnpm run test\n```\n\n# How to run e2e tests\n\nTo run the e2e tests in the browser, you can use the following command:\n\n```bash\nnpm run cypress:open\n```\n\nTo run the e2e tests in the headless mode, you can use the following command:\n\n```bash\nnpm run cypress:run\n```\n\n# How to run lint\n\n```bash\nnpm run lint\n```\n\n# How to run storybook\n\n```bash\nnpm run storybook\n```\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertocode%2Fticket-travel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvertocode%2Fticket-travel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvertocode%2Fticket-travel/lists"}