Skip to content
Open access website for the Mobilier National collection
HTML PHP JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
app
bootstrap
config
database
documentation
postmark-templates-master 2
public
resources
routes
storage
tests
.babelrc
.env.example
.gitattributes
.gitignore
AUTHORS
LICENSE
artisan
composer.json
composer.lock
package-lock.json
package.json
phpunit.xml
readme.md
server.php
svgo.json
tsconfig.json
webpack.mix.js

readme.md

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.

You can’t perform that action at this time.