Run below Commands:
-
copy the
.env.examplefile to.env:cp .env.example .env
-
build and run the project using Docker:
docker-compose up --build
-
Install the composer packages
make composer-install
-
Migrate and seed tables
make migrate
-
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
})
}
-
make run-test
| # | 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 |