A simple Laravel Rest Api with santum authentication package that could handle both first-party web requests from a web browser and API requests via tokens.
- PHP 8.1 or higher
- Laravel 9.x
- MySQL 8.0 or higher
To install the Laravel app, follow these steps:
- Clone the repository to your local machine
Copy code
git clone https://github.com/mcben267/RestApi.git
- Change into the app directory
cd ussd-app
- Install dependencies
composer install
npm install
npm run dev
- Create a copy of the .env file
cp .env.example .env
- Generate an app key
php artisan key:generate
-
Create a database and update the .env file with the database credentials
-
Run the migrations
php artisan migrate
- Start the development server
php artisan serve
Verify the deployment by navigating to your server address in your preferred browser.
http://127.0.0.1:8000
- Register a new account
- Log in to the app
- View user profile
- Log out of the app
- Log out of all devices
If you want to contribute to the Laravel app, feel free to fork the repository and create a pull request with your changes.
The Rest Api is open-source software licensed under the MIT license.