entrepreneur-interet-general/gobelins
Open access website for the Mobilier National collection
Gobelins
Gobelins is the main back-end application for the Gobelins project, an initiative to make accessible the
collections of the Mobilier National, as described here.
Documentation: coming soon :)
Development setup
$ php artisan migrate:install
$ php artisan migrate
$ php artisan db:seed --class=ProductTypeSeeder
$ php artisan es:indices:createImporting products from the Gobelin-datasource API
$ php artisan gobelins:import -vvvInterrupt process with Ctrl-C, it will gracefully exit.
You may then resume the import starting from a given page:
$ php artisan gobelins:import -vvv --from=58To re-index Elasticsearch:
php artisan scout:flush "App\Models\Product"
php artisan scout:import "App\Models\Product"Cache stategy
Image caching
The images should hardely ever change, so we set up a request cache at the HTTP server level,
so we only need to generate images once.
Nginx will cache whatever result is outputted from the Image controller.
For more configuration information, see the gobelins-devops repository.
Response cache
…TODO…
Credits
- Laurie Chapotte, design
- Ned Baldessin, development
License
The Gobelins application is open-sourced software licensed under the MIT license.
Copyright © 2018 Ministère de la Culture et de la Communication
Mobilier national et manufactures des Gobelins, de Beauvais et de la Savonnerie.