A simple booking system for the company Heitor Hotel. The system is a simple booking system, that allows the user to book a room, and see the available rooms.
- React
- Vite
- TailwindCSS
- ShadCN/UI
- Iconify
- Vitest
src/
- The main source code of the applicationsrc/components
- The components of the applicationsrc/pages
- The pages of the applicationsrc/hooks
- The hooks of the applicationsrc/utils
- The utility functions of the applicationsrc/types
- The types of the applicationsrc/models
- The data models of the applicationsrc/lib
- The libraries of the applicationsrc/layout
- The layout of the applicationsrc/state
- The global state of the applicationtests
- The tests of the application
- AirBnB
The code follows the principle of SOLID, with a proper separation of concerns.
Inside the src/components
folder, you will find components that don't have any access to data structure or global state. They are just presentational components.
The src/pages
folder contains the pages of the application. They are responsible for the data fetching and the state management.
The code saves the booked information in the local storage, so the user can refresh the page and still see the booked rooms.
All files inside the src
have a unit test, and the tests are located in the tests
folder.