# Auth Service

## Required :

PHP ^8.3

MySQL

Web Server (Apache | Nginx)

Redis (staging/production)

Supervisor (staging/production) (https://laravel.com/docs/11.x/queues#supervisor-configuration)

## Installation

Copy the example env file and make the required configuration changes in the .env file

    cp .env.example .env

Install all the dependencies using composer

    composer install

Generate a new application key

    php artisan key:generate

Run the database migrations (**Set the database connection in .env before migrating**)

    php artisan migrate

Run the database seeder

    php artisan db:seed

Run the Scheduler command for staging/production

    * * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Start the local development server

    php artisan serve

You can now access the server at http://localhost:8000

or you can create virtual host
