Virtual Internship Experience (Investree) - Fullstack - Faqih Pratama Muhti
Laravel 8 Articles created by :
- Github -----> Faqih Pratama Muhti | programmerShinobi
- JWT Authentication
- CRUD RESTfull-API (Categories & Posts)
- Login Authentication
- CRUD Categories
- CRUD Posts
Admin
- Email -----> "matches the database in the users table"
- Password --> password
- Download the master branch in terminal
git clone git@github.com:programmerShinobi/task-5-fullstack.git
- Install the composer dependencies in terminal
composer install
- Make a file .env from .env.example and setting your config & create database name : articles_db
... APP_URL=http://127.0.0.1:8000 ... DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=articles_db 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 passport in terminal
php artisan passport:install
- Dont forget copy-paste the latest "Client ID" & "Client secret" to App/Http/Controllers/Api/Auth/LoginController.php
... 'client_id' => '...', 'client_secret' => '...', ...
- Dont forget setting your URL : 'http://127.0.0.1:8000' in config/app.php
... 'url' => env('APP_URL', 'http://127.0.0.1:8000'), ...
- Run JWT authentication
php artisan jwt:secret
- 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 (Postman), Just download the file from this google drive link. And then import your API testing tool (Postman)
Just Contact Me At :
- Email -----> faqihpratamamuhti@gmail.com
- LinkedIn --> Faqih Pratama Muhti | programmerShinobi