The Europa Museum is a custom Craft CMS marketing website for a fictitious art museum. This repository houses the source code for our demo, which you can spin up for yourself by visiting craftcms.com/demo.
We’ve also included instructions below for setting up the demo in a local development environment with Craft Nitro.
Europa shows off many of Craft’s core features and includes a guided tour courtesy of the Guide plugin.
- Craft CMS 3
- PostgreSQL (13)
- PHP (7.2.5+), built on the Yii 2 framework
- Native Twig templates
- Babel with ES6
- Sass
- Laravel Mix with PurgeCSS and Critical CSS
- Highway.js
- GSAP
- Lazysizes
- LocomotiveScroll
If you’d like to get Europa running in a local environment, we recommend using Craft Nitro:
- Follow Nitro’s installation instructions for your OS.
- Make sure you’ve used
nitro db new
to create a PostgreSQL 13 database engine. - Run
nitro create
with the URL to this repository:nitro create craftcms/europa-museum europa
- hostname:
europa.nitro
- web root:
web
- PHP version:
8.0
- database?
Y
- database engine:
postgres-13-*.database.nitro
- database name:
europa
- update env file?
Y
- hostname:
- Move to the project directory and add a Craft account for yourself by following the prompts:
cd europa nitro craft users/create --admin
💡 If you’re using a different local environment, see Craft’s Server Requirements and Installation Instructions.
Run npm install
with node 14.15.0 or later.
If you use a different site URL, update DEFAULT_SITE_URL
in .env
or the production build process will fail:
DEFAULT_SITE_URL=https://europa.nitro
You can then run any of the development scripts found in package.json
:
npm run watch
to watch and automatically recompile assets for local developmentnpm run sync
to watch files and reload with BrowserSync for local developmentnpm run dev
to compile assets for local developmentnpm run prod
to compile optimized assets for production
The source code of this project is licensed under the BSD Zero Clause License unless stated otherwise.
The imagery used by this project is the property of each respective license holder. You are not free to use it for your own projects.