Test Fullstack - Faqih Pratama Muhti
Laravel 8 Articles created by :
Download the master branch in terminal
git clone [email protected]:programmerShinobi/test-fullstack.git
Install the composer dependencies in terminal
composer install
Make a file .env from .env.example and setting your config & create database name : article
//...
APP_URL=http://127.0.0.1:8000
//...
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=article
DB_USERNAME=root
DB_PASSWORD=
//...
Dont forget generate key from Laravel artisan in terminal
php artisan key:generate
Run composer update in terminal
composer update
Run Seed and faker in terminal
php artisan migrate:fresh --seed
Run serve in terminal
php artisan serve
Run apps in web browser
http://127.0.0.1:8000
Run RESTfull API in API testing tool
http://127.0.0.1:8000/api/...
If you run RESTfull API in testing tool using Postman, just download the file from this google drive link. And then import the file into your API testing tool using Postman
If you test Backend (REST API) : Create post with method POST & Run REST API in testing tool
http://127.0.0.1:8000/api/article
If you test Backend (REST API) : Display all posts with method GET & Run REST API in testing tool
http://127.0.0.1:8000/api/article
If you test Backend (REST API) : Show detail post with method GET & Run REST API in testing tool
http://127.0.0.1:8000/api/article/{id}
If you test Backend (REST API) : Update post with method PUT & Run REST API in testing tool
http://127.0.0.1:8000/api/article/{id}
If you test Backend (REST API) : Delete post with method DELETE & Run REST API in testing tool
http://127.0.0.1:8000/api/article/{id}
Just Contact Me At :