-
Laravel
-
Sanctum
-
Docker
-
Clone the project
-
Config your mail server in
.env.example
Emails are not queued so to avoid getting error you should do this configuration or just add mails to queue.
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"
- Run
make setup
in the main folder.
Postman api collection =>
https://www.getpostman.com/collections/f3438f0b8aef95dd554b
http://localhost:81
http://localhost:8186 => phpMyAdmin
Manager =>
email : [email protected]
password : password
Customer =>
email : [email protected]
password : password
login
register
you should log in as a manager to have access to this folder.
- Change a waiting order
=> manager can change an order's status.
- Cancle a waiting order
you just need to log in.
- View Menu (list of products)
- Order at coffee shop with options =>
you can order products via this api.
each order can have multiple product.
each product can have multiple *custom options* too.
you should enter your request as an json :
{
"order":
{
"consume_location": "in shop",
"products":
{
"0": {
"product_id": "1",
"product_options": {
"milk": "semi",
"size": "small"
}
},
"1": {
...
}
}
}
}
- View your order (product list, pricing & order status)
=> you are not allowed to see other ones orders.
- Cancle a waiting order