Welcome to my BookYourBarber open-source school project, providing a user-friendly platform for booking barber appointments with ease and convenience!
To run the project, you will need docker and its compose installed (see here).
Firstly you should clone the main repository BookYourBarber in which one are all existing repositories.
When you clone it, your file tree should look like this:
├── appointments
│ ├── app.js
│ ├── Dockerfile
│ ├── index.js
│ ├── jest.config.js
│ ├── package.json
│ ├── package-lock.json
│ ├── routers
│ │ └── appointmentRouter.js
│ ├── sonar-project.properties
│ ├── tests
│ │ └── appointmentRouter.test.js
│ └── utils.js
├── customer_frontend
│ ├── Dockerfile
│ ├── package.json
│ ├── package-lock.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── imgs
│ │ │ ├── asdf.png
│ │ │ ├── bluemappin.png
│ │ │ ├── home.png
│ │ │ ├── rainbow_adobe_express.svg
│ │ │ └── rainbow.png
│ │ ├── index.html
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── README.md
│ └── src
│ ├── App.css
│ ├── App.js
│ ├── App.test.js
│ ├── Components
│ │ ├── Appointment.jsx
│ │ ├── Footer.js
│ │ ├── Header.js
│ │ ├── Maps.jsx
│ │ ├── Schedule.jsx
│ │ └── UserInformation.jsx
│ ├── index.css
│ ├── index.js
│ ├── logo.svg
│ ├── Pages
│ │ ├── AppointmentPage.js
│ │ ├── HomePage.js
│ │ └── UserInformation.js
│ ├── reportWebVitals.js
│ └── setupTests.js
├── docker-compose.yml
├── package.json
├── package-lock.json
├── README.md
├── schedule
│ ├── app.js
│ ├── Dockerfile
│ ├── index.js
│ ├── jest.config.js
│ ├── package.json
│ ├── package-lock.json
│ ├── routers
│ │ └── scheduleRouter.js
│ └── tests
│ └── scheduleRouter.test.js
├── time_slots
│ ├── Dockerfile
│ ├── index.js
│ ├── package.json
│ ├── package-lock.json
│ └── routers
│ └── timeSlotRouter.js
└── users
├── app.js
├── Dockerfile
├── index.js
├── jest.config.js
├── package.json
├── package-lock.json
├── routers
│ └── userRouter.js
└── tests
└── userRouter.test.js
Before you start the application, you should set two things.
- You should go to every folder you should run
npm installso you install the required dependencies - You have to add
.envfile infrontend_customerand set google maps API key so application can work. Follow the instructions here
Go to the root folder and run docker-compose up --build in your terminal. The frontend application is now available on default port http://localhost:3000