Hair Day is a web application for scheduling haircuts. With a user-friendly interface, users can select the date, time, and enter the client's name to create a schedule. Additionally, it is possible to view existing schedules.
- JavaScript: Primary programming language.
- Webpack: For module bundling.
- Babel: For transpiling modern JavaScript code.
- JSON Server: To simulate a RESTful API.
- Day.js: For date manipulation.
- Schedule haircuts.
- View schedules by day.
- Cancel existing schedules.
hairday/
βββ src/
β βββ assets/ # Images and icons
β βββ modules/ # Feature modules
β βββ services/ # API services
β βββ styles/ # CSS styles
βββ index.html # Main page
βββ package.json # Dependencies and scripts
βββ server.json # Simulated API data
npm run build
: Compiles the project for production.npm run dev
: Starts the development server.npm run server
: Starts the JSON Server to simulate the API.
During the development of this project, I learned:
- How to use Webpack to bundle and optimize resources.
- The importance of Babel to ensure compatibility with older browsers.
- How to manipulate dates efficiently with the Day.js library.
- Creating a simple RESTful API using JSON Server to simulate interactions with a database.
- Implementing forms and validations in JavaScript to improve the user experience.
Contributions are welcome! Feel free to open issues or pull requests.
This project is licensed under the ISC License. See the LICENSE file for more details.
Developed by Rafael Dias Zendron. You can find me on LinkedIn or GitHub.