A frontend app which act like a miniature of Google Flight. This fetch data from https://rapidapi.com/apiheya/api/sky-scrapper.
/public /* Assets that's not compiled, directly accessible through `http://{host}/{files-inside-public-folder}` */
/src
-- /assets /* Assets which compiled */
-- /common /* Common files used app-wide */
-- /lib /* Utility & helper
--- /dummy /* Dummy data */
--- /services /* Utility functions related to external service /*
--- /types /* Typescript's common types definition */
--- /utils /* Utility helper functions */
-- /pages /* React components for our pages */
Root files :
index.html: Entry HTML fileeslint.config.js: Configuration for ESLINT (lint)vite.config.js: Configuration for Vitetsconfig.json: Configuration for Typescript, along withtsconfig.app.jsonandtsconfig.node.json.env: Environment variable (you need to add this file yourself as this is not committed to Git)
Root files inside /src :
main.ts: Entry main scriptAppRoutes.tsx: Our routing
- React
- Material UI
- Typescript
- Jotai : State management
- React Router : Frontend routing
- Vite : Frontend bundler & local development server
- Dayjs : Date manipulation
- Lodash : Utility helper
- Clone the project
- Run
npm installinside the project folder - Create a
.envfile contains the following variable :VITE_RAPID_API_KEYwith API Key from RapidAPI - Run
npm run dev - Open
http://localhost:5173in browser