CodeIgniter 4 RESTapi Server 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: test@alexlancer.com
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'
env
file and uncomment all database.default
lines and set you database connection detailsdatabase.default.DBDriver = MySQLi
database.default.DSN = 'mysql:dbname=ADD_YOUR_DB_NAME;host=localhost'
Watch this video: https://www.youtube.com/watch?v=qPefoRbsfMc&t=320s