Skip to content

entrepreneur-interet-general/gobelins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9d52a34 · May 9, 2021
Nov 22, 2018
Apr 27, 2021
May 10, 2018
Sep 17, 2020
May 9, 2020
May 9, 2021
Sep 25, 2019
Oct 2, 2019
Mar 26, 2021
Apr 22, 2020
Oct 3, 2019
May 10, 2018
Jan 8, 2020
May 9, 2020
May 10, 2018
Jan 13, 2020
May 14, 2018
May 14, 2018
May 10, 2018
Apr 27, 2021
Apr 27, 2021
Jul 30, 2020
Feb 6, 2020
May 10, 2018
Nov 3, 2018
May 10, 2018
Mar 18, 2019
Nov 28, 2018
Jan 13, 2020

Repository files navigation

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:create

Importing products from the Gobelin-datasource API

$ 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

To 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.