Skip to content

abbasfisal/appointment-app

Repository files navigation

Appointment Project

Run below Commands:

  1. copy the .env.example file to .env:

    cp .env.example .env
  2. build and run the project using Docker:

    docker-compose up --build
  3. Install the composer packages

    make composer-install
  4. Migrate and seed tables

    make migrate
  5. Run Swagger Documentation http://localhost:8081/doc/

Note: If the port or host address changes (e.g., from localhost to 127.0.0.1 or any other host address), you must update it in doc/index.html.

    window.onload = function() {
            SwaggerUIBundle({
                url: "http://localhost:8081/doc/swagger.php",
                dom_id: '#swagger-ui',
                presets: [
                    SwaggerUIBundle.presets.apis,
                    SwaggerUIStandalonePreset
                ],
                layout: "BaseLayout",
                deepLinking: true
            })
        }

  • Run Tests

    make run-test

routes

# url method description
1 /appointments GET Get list of Appointments
1 /appointments/create POST Create New Appointment for the user
1 /appointments/cancel PATCH Cancel an Appointment

About

php pure web application with hexagonal architecture

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors