Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abbasfisal/appointment-app

php pure web application with hexagonal architecture
https://github.com/abbasfisal/appointment-app

hexagonal php php8 swagger swagger-ui

Last synced: 11 days ago
JSON representation

php pure web application with hexagonal architecture

Awesome Lists containing this project

README

        

## Appointment Project

Run below Commands:

1. copy the `.env.example` file to `.env`:
```bash
cp .env.example .env
```

2. build and run the project using Docker:
```bash
docker-compose up --build
```

3. Install the composer packages
```bash
make composer-install
```

4. Migrate and seed tables
```bash
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
```bash
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 |