To set up this project locally, you can follow the guideline below:
Please install the software listed below.
- Laragon
- Clone the repo into
C:/Laragon/WWW
foldergit clone https://github.com/nasuhasri/laravelapi.git
- Copy and paste
env.example
file in the same destination. - Change the file to be
.env
only. - Rename your database to any name you want.
- To make it easy, you can rename the database to
laravelapi
. - Create the database in laragon using the same name.
- Import the
laravelapi.sql
file in database in the laragon. - Copy and paste this link
http://localhost/laravelapi/public/api/listAll
to access the api. - You should get the interface as below.
- To get the list of api in this project, you can go to
routes/api.php
or you can simply type this command in your terminal:public artisan route:list
- You should get interface as below: