Based on YouTube tutorial
https://www.youtube.com/watch?v=qPefoRbsfMc&list=PLYogo31AXFBN23O7wHgQv7eI7Qf84nj4W
navigate inside your project folder using command line/terminal and run:
composer install
Once you create your db import restapi.sql
This mysql dump has some dummy data such as:
Client id: testclient
Client secret: testsecret
You should change this credentials to your own randomly generated keys
User: Alex Lancer
Email: [email protected]
Password: password
not in use because in the tutorial we created custom Storage driver and used our own table for storing the users which is named 'users' instead of the default table 'oauth_users'
- Duplicate
env
file and uncomment alldatabase.default
lines and set you database connection details - Add new line after
database.default.DBDriver = MySQLi
database.default.DSN = 'mysql:dbname=ADD_YOUR_DB_NAME;host=localhost'
- Uncomment and set app.baseURL
Watch this video: https://www.youtube.com/watch?v=qPefoRbsfMc&t=320s