https://github.com/seedy1/saloon-scheduler
This application helps clients make appointments to schedule haircuts with barbers.
https://github.com/seedy1/saloon-scheduler
java microservices netflix-eureka netflix-hystrix netflix-oss spring-boot
Last synced: 6 months ago
JSON representation
This application helps clients make appointments to schedule haircuts with barbers.
- Host: GitHub
- URL: https://github.com/seedy1/saloon-scheduler
- Owner: seedy1
- Created: 2022-02-02T08:26:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T19:26:22.000Z (12 months ago)
- Last Synced: 2025-02-14T22:52:43.907Z (8 months ago)
- Topics: java, microservices, netflix-eureka, netflix-hystrix, netflix-oss, spring-boot
- Language: Java
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Saloon-Scheduler
A distributed microservcie app used to make appointments to schedule haircuts with barbers. This backend API can be extended to both an mobile application and web.- java version 11
- spring version 2.6.3
- maven -- yes## Services
## 1. Shop/barber Service
>This service contains the barbers and barber shops and models for adding them.
## 2. Appointment Service
>This service allows users to make an appointment with a particular barber.## 3. Discovery
>This provides the service disvovery for the application.## 4. API Gateway Service
>this provides a centralized access point for the application.## Hystri
>This provides a dashboard to monitor all request being made with failure and success rates. Here is also where we have the fall back methods incase a microservice is completely not working.## how to setup and run the application
Recommended IDE is in IntelliJ.### 1. Make sure your computer has java 11
### 2. open all the applications as different projects
### 3. Setup mySql by creating two databases, one for shop-service and the other for appointment-service
### 4. Open the application.yaml files for shop-service and appointment-service and change the follwoing configurations
spring:
application:
name: appointment-service
datasource:
url: `chnage`
username: `chnage`
password: `chnage`
driver-class-name: com.mysql.cj.jdbc.Driver## How to run the API
import the poostman collection `Saloon-Scheduler\clould.postman_collection.json`, this has all the endpoints you need to run and test the application.
Examples of post request below
`{
"firstName": "name",
"secondName": "second",
"email": "ba@w.fr",
"phoneNumber": "01 02 02 78 78"
}``{
"firstName": "first",
"secondName": "customer",
"phoneNumber": "668",
"email": "me@me.com",
"note": "this is a note",
"appointmentDate": "2022-03-27",
"barberID": 1
}`