Lumen is a Stunningly Fast PHP Micro-Framework By Laravel. Which for develop an APIs.
Make sure you have installed PHP 7.4.29 and XAMPP Control Panel 3.3.0 , and Postman
To run on server , Run the following command :
cd kuliah-tamu
,then php -S localhost:8000 -t public
.
If the terminal is showing PHP 7.4.29 Development Server (http://localhost:8000) started
,
Now, your project is running .If you want to stop , click Ctrl + C
Change your file .env like PHPmyadmin on your PC
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=yourdb
DB_USERNAME=root
DB_PASSWORD=
Start Apache and MySQL in XAMPP and Create new databases whatever you want and create new table.
Then , Create columns. For example, id(int) , name(varchar) , age(int) .
Open your Postman and Enter request URL localhost:8000/