Welcome to the React Barbershop app! This app allows customers to book appointments for various barbershop services.
Customers can view the available services offered by the barbershop Customers can book appointments for their desired service and time Customers can view their booked appointments Barbershop staff can view and manage customer appointments
The app uses the following technologies:
React for the frontend Sinatra for the backend SQLite for the database
To install the app, follow these steps:
-
Clone the repository to your local machine
-
Navigate to the frontend directory and run npm install to install the frontend dependencies
-
Navigate to the backend directory and run bundle install to install the backend dependencies
-
Run rake db:migrate to create the database tables
-
Run rake db:seed to seed the database with sample data (optional)
-
Run rackup to start the Sinatra server
-
In a separate terminal, navigate to the frontend directory and run npm start to start the React app
To use the app, open a web browser and navigate to http://localhost:9292. The app should load and you should be able to view the available services and book appointments. And also navigate to http://localhost:5000 to watch json server
If you would like to contribute to the app, please follow these steps:
- Fork the repository
- Create a new branch for your changes
- Make your changes and commit them with a descriptive commit message
- Push your changes to your fork
- Create a pull request to the main branch of the original repository
This app was created by John Vundi. If you have any questions or feedback, please contact [email protected]