A quick laravel API that implements CRUD on a Users database. However OAuth authorization is not implemented but the functionality is added.
- Clone or download the repository and navigate to the project folder
- As this is a Laravel project, Make sure you have composer installed
- Open a terminal or command line in the folder directory
- Run the following commands
Optional
composer install
npm install
- You may need to run these commands as root or administrator
- Install Passport
composer require laravel/passport
- Register Passport as a laravel provider in
config\app.php
Laravel\Passport\PassportServiceProvider::class,
- Migrate the tables to the database
php artisan migrate
- Generate passport encryption keys
php artisan passport:install
- Remember to create your own
.env
file - Generate an application key using:
php artisan key:generate
- Remember to create your own