{"id":14975053,"url":"https://github.com/fitzwilliammuseum/fitz-main-website","last_synced_at":"2025-09-01T09:33:30.918Z","repository":{"id":37590389,"uuid":"254753459","full_name":"FitzwilliamMuseum/fitz-main-website","owner":"FitzwilliamMuseum","description":"A simple Laravel front end for the production version of the  Fitzwilliam Museum website.","archived":false,"fork":false,"pushed_at":"2025-08-27T16:11:32.000Z","size":32359,"stargazers_count":5,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-28T01:28:40.447Z","etag":null,"topics":["cambridge-university","directus","laravel","laravel-framework","laravel9","museum-digital","php"],"latest_commit_sha":null,"homepage":"https://fitzmuseum.cam.ac.uk","language":"Blade","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FitzwilliamMuseum.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-04-10T23:06:59.000Z","updated_at":"2025-08-20T08:20:18.000Z","dependencies_parsed_at":"2023-09-28T16:35:54.091Z","dependency_job_id":"236e8833-cbec-4893-9a1e-42f0abf7bd12","html_url":"https://github.com/FitzwilliamMuseum/fitz-main-website","commit_stats":{"total_commits":2220,"total_committers":11,"mean_commits":201.8181818181818,"dds":"0.17432432432432432","last_synced_commit":"0d5c95f03afc92cb6f42b4507cd77d1aa2098a41"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/FitzwilliamMuseum/fitz-main-website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitzwilliamMuseum%2Ffitz-main-website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitzwilliamMuseum%2Ffitz-main-website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitzwilliamMuseum%2Ffitz-main-website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitzwilliamMuseum%2Ffitz-main-website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FitzwilliamMuseum","download_url":"https://codeload.github.com/FitzwilliamMuseum/fitz-main-website/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FitzwilliamMuseum%2Ffitz-main-website/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273100187,"owners_count":25045697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cambridge-university","directus","laravel","laravel-framework","laravel9","museum-digital","php"],"created_at":"2024-09-24T13:51:27.082Z","updated_at":"2025-09-01T09:33:30.897Z","avatar_url":"https://github.com/FitzwilliamMuseum.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Framework for the Fitzwilliam Museum website\n\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.6304361.svg)](https://doi.org/10.5281/zenodo.6304361)[![ORCiD](https://img.shields.io/badge/ORCiD-0000--0002--0246--2335-green.svg)](http://orcid.org/0000-0002-0246-2335)\n\n\nThis repository contains the code base for a Laravel based front end for the latest version of @fitzwilliammuseum website.\n\nThe front end is very simple and uses Bootstrap latest framework, latest JQuery and various libraries to interface with a headless API provided by our installation of the @directus 8 system, Solr and ElasticSearch endpoints.\n\nThe models in this system point at an API rather than a database.  \n\n## Data sources\n\nData comes from various systems and API endpoints.\n\n1. Main content - Directus Headless CMS\n2. Search content - SOLR 8.11.1 instance\n3. Collections content - CIIM version 5 ElasticSearch instance from Knowledge Integration, standard mappings and the nascent API\n4. Twitter - API driven\n5. Shopify - FME systems queried and indexed daily into SOLR\n6. Sketchfab\n7. Instagram\n8. Libsyn for podcasts\n9. UCAM streaming media service\n10. YouTube\n11. Vimeo\n\n## Cache\n\nIn production, we use REDIS. Locally use File based caching unless you want to install REDIS.\n\n## Deployment \n\nView [deployment information](https://github.com/FitzwilliamMuseum/fitz-web-docs/blob/main/docs/websites/main-website/how-to-guides/deploying-code/from-github.md) on the Fitzwilliam Docs.   \n\n## Installation\n\n1. Install php 8.1 into your environment\n2. Install composer and then do the following:\n```\ngit clone git@github.com:FitzwilliamMuseum/fitz-main-website.git\ncd fitz-main-website\ncomposer install\nphp artisan key:generate\ncp .env.example .env\nnpm install \n```\nOn some ubuntu machines, the npm install script fails at the npm run copy command. \nTo fix this run the commands separately:\n\n```bash\nnpm run copy-uv-html # \"cp -R node_modules/universalviewer/dist/uv.html ./public\", Universal viewer copy\nnpm run copy-uv-css # \"cp -R node_modules/universalviewer/dist/uv.css ./public/\",\nnpm run copy-uv-assets # \"cp -R node_modules/universalviewer/dist/umd/ ./public/umd/\",\nnpm run copy-icons # \"cp -R node_modules/super-tiny-icons/images/svg/ ./public/images/svg/\",\nnpm run copy-cookie-css # cp -R node_modules/vanilla-cookieconsent/dist/*.css ./resources/css/\",\nnpm run copy-cookie-js # \"cp -R node_modules/vanilla-cookieconsent/dist/*.js ./resources/js/\",\nnpm run copy-pannellum-css # \"cp -R node_modules/pannellum/build/*.css ./public/css/\",\nnpm run copy-pannellum-js # \"cp -R node_modules/pannellum/build/*.js ./public/js/\",\n```\n\nIf the versions have been updated you may need to run:\n\n```bash\nnpm run production \n```\n\nWhich will compress all the css and js files. \n\n### Env setup \n\nFill in variables for your instance (Cache etc), values from the production version of the websites are on\nthe main network drive. \n\n```\nnano .env\n```\n\n### A few notes on env settings\n\nSet `CACHE_DRIVER` to `redis` or `file` depending on your environment.\n\nSet the `SOLR_ENABLED` flag to `true` or `false` based on whether Solr is supported in your environment.  \n\n## Running a local copy \n\nIf you are running locally you can preview the website via: \n\n```bash\nphp artisan serve\n```\n\n### I feel the need for speed\n\nTo cache icons and routes:\n\n```bash\nphp artisan icons:cache\nphp artisan route:cache\n```\n\n## License\n\nGPL V3\n\n## Contributors\n\nDaniel Pett @portableant\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzwilliammuseum%2Ffitz-main-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitzwilliammuseum%2Ffitz-main-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitzwilliammuseum%2Ffitz-main-website/lists"}