- Clone the project.
- cd into your project folder.
- Run the following commands:
composer install| Install all dependenciescp .env.example .env| Create a fresh .env filephp artisan key:generate| Generate an unique encryption key
- Fill the .env file with all necessary information
- (Opt.) If you're using a local database for testing purposes run the following commands:
php artisan migrate:fresh| Migrate the databasephp artisan db:seed| Seed the database with test data
In order to run the api locally
php artisan serve
If the API produces 404 errors on routes where it shouldn't, run the following command:
php artisan optimize
In order to run the api locally but allow access to other devices / emulators
ipconfig- Copy your ipv4 address
php artisan serve --host <IPV4 ADDRESS>
Made by: Group Q