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 :)
First get the source by executing the command which will clone the repository :
composer create-project entrepreneur-interet-general/gobelins gobelins "dev-master" --repository='{"type": "vcs", "url": "[email protected]:Novactive/MN-gobelins-laravel.git"}'
Download the following DB dump and save it as provisioning/dev/db/mn.lab.database.dump
directory :
https://docs.google.com/uc?export=download&id=1sh233rN-12w5glQPcdoqGjQM8piaVKXJ
Run the following command to create the local development docker stack :
make create
Once done, the application should be accessible from the following urls :
- http://localhost:39080/ (dev mode with debug)
- http://localhost:39081/ (prod mode)
php artisan gobelins:import -vvv
Interrupt 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=58
php artisan scout:flush "App\Models\Product"
php artisan scout:import "App\Models\Product"
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.
…TODO…
- Laurie Chapotte, design
- Ned Baldessin, development
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.