Code Monkey home page Code Monkey logo

saloon-scheduler's Introduction

Saloon-Scheduler

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

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": "[email protected]", "phoneNumber": "01 02 02 78 78" }

{ "firstName": "first", "secondName": "customer", "phoneNumber": "668", "email": "[email protected]", "note": "this is a note", "appointmentDate": "2022-03-27", "barberID": 1 }

saloon-scheduler's People

Contributors

seedy1 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.