The app is to have an appointment maker 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
This service contains the barbers and barber shops and models for adding them.
This service allows users to make an appointment with a particular barber.
This provides the service disvovery for the application.
this provides a centralized access point for the application.
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.
Recommended IDE is in IntelliJ.
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
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 }