Before running the setup script, ensure you have the following dependencies installed:
- Composer globally installed
- PHP globally installed
- Laravel globally installed
- MySQL or compatible database server installed and running
-
Make the script executable:
chmod +x setup.sh
-
Run the script:
./setup.sh
- Interactive menu for easy selection of setup options.
- Automatic installation of Laravel dependencies.
- Automatic generation of application key if
.env
file does not exist. - Migration status check and execution if needed.
- Seed data status check and creation if needed.
- Customizable host and port for running the Laravel server.
- Checks for existing
vendor
directory and installs dependencies if not found. - Copies
.env.example
to.env
and generates application key if.env
file does not exist.
- Checks migration status and runs migrations if needed.
- Checks seed data status and creates seed data if needed.
- Starts the Laravel development server with default or custom host and port.
- Exits the script.
- Modify the
default_host
anddefault_port
variables in the script to set default host and port values. - Adjust the script logic to fit specific project requirements.
Contributions are welcome! Feel free to submit issues or pull requests on the github.com/menoc61/gestion-des-soin-laravel.
This script is open-source and available under the MIT License.
See the Error handler file for more details.