Skip to content

Commit 574c349

Browse files
committed
add php composer script to run the web server
1 parent ddf7842 commit 574c349

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,13 @@ Create an **error.log** file in the logs directory to store all error logs that
108108

109109
## Usage
110110

111-
After setting up the project, you can access the API endpoints using a tool like Postman or cURL. Below are some examples of how to use the endpoints:
111+
After setting up the project, you can start the web server first. You can use Apache HTTPD, NGINX or PHP built in web server.
112+
113+
```bash
114+
composer run dev
115+
```
116+
117+
After that, you can access the API endpoints using a tool like Postman or cURL.Below are some examples of how to use the endpoints:
112118

113119
### Get All Users
114120
```bash

‎composer.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"scripts": {
3+
"dev": "php -S localhost:8000 -t public"
4+
},
25
"require": {
36
"vlucas/phpdotenv": "^5.6"
47
}

0 commit comments

Comments
 (0)