In this project I was able to create a Week Scheduler using ReactJs, Storybook Visual, Jest Test Framework and making requests to an API using Axios. Additionally, custom hooks were used along useReducer in order to make the application more modular and organized.
Install dependencies with npm install
.
npm start
npm test
npm run storybook
In order to run the server, please utilize the API by forking and cloning the following repository into a separate folder of the project: https://github.com/lighthouse-labs/scheduler-api.
start the server using:
npm start
The Scheduler has the following structure:
The data is loaded from the API and includes the days (left side of navbar), the appointments (right side of the navbar) and the list of interviewers when you create or edit an appointment.
Visualizing after it is saved:
Please note, the spots for the day is automatically updated (rendered by changing the states) once an appointment is created or deleted from the Scheduler.