Skip to content

Commit 43b7b6f

Browse files
committed
first commit
0 parents  commit 43b7b6f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Laravel PHP MariaDB Demo
2+
3+
## Installation
4+
5+
### 1. Install PHP, Composer, and MariaDB
6+
```
7+
bash setup-mac/macsetup.sh
8+
```
9+
10+
### 2. Configure `.env` file:
11+
12+
```
13+
DB_CONNECTION=mariadb
14+
DB_HOST=127.0.0.1
15+
DB_PORT=3306
16+
DB_DATABASE=laravel_php_mariadb_demo
17+
DB_USERNAME=root
18+
DB_PASSWORD=
19+
20+
```
21+
22+
### 3. Run database migration:
23+
24+
```sh
25+
php artisan migrate
26+
```
27+
28+
### 4. Start the Laravel server:
29+
30+
```sh
31+
php artisan serve
32+
```
33+
34+
Access Test: http://127.0.0.1:8000/api/words
35+

0 commit comments

Comments
 (0)