Virtual Internship Experience (Investree) - Fullstack - Faqih Pratama Muhti
Laravel 8 Articles created by :
- 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
http://127.0.0.1:8000/api/...
Just Contact Me At :
- Email : faqihpratamamuhti@gmail.com
- LinkedIn : <a href:"https://www.linkedin.com/in/faqih-pratama-muhti-9a75a2130/"> Faqih Pratama Muhti | programmerShinobi