This project is a Laravel-based configuration management system that allows you to manage application configurations dynamically.
- Retrieve and update configurations for different applications.
- Cache configurations for improved performance.
- Singleton pattern for configuration management.
- Database seeding for initial configuration setup.
-
Clone the repository:
git clone <repository-url>
-
Install dependencies:
composer install
-
Copy the example environment file and configure it:
cp .env.example .env
-
Start the development environment using Laravel Sail:
./vendor/bin/sail up
-
Generate an application key:
./vendor/bin/sail php artisan key:generate
-
Run the database migrations and seeders:
./vendor/bin/sail php artisan migrate --seed
GET /config
: Displays the configuration settings.POST /config/update
: Updates the configuration settings.
To update a configuration, send a POST request to /config/update
with the following parameters:
app
: The name of the application.key
: The configuration key.value
: The new value for the configuration key.
Run the following command to execute the test suite:
./vendor/bin/sail test
This project is open-sourced software licensed under the MIT license.