Code Monkey home page Code Monkey logo

europa-museum's Introduction

Europa Museum Craft CMS Demo

Europa Museum homepage

Overview

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.

Development Technologies

Front End Dependencies

Local Development Setup

Environment

If you’d like to get Europa running in a local environment, we recommend using Craft Nitro:

  1. Follow Nitro’s installation instructions for your OS.
  2. Make sure you’ve used nitro db new to create a PostgreSQL 13 database engine.
  3. 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
  4. 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.

Front End

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 development
  • npm run sync to watch files and reload with BrowserSync for local development
  • npm run dev to compile assets for local development
  • npm run prod to compile optimized assets for production

License

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.

europa-museum's People

Contributors

angrybrad avatar kennethormandy avatar mikewink avatar shinybrad avatar timkelty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

europa-museum's Issues

Database Import Issue

Description

I am installing the "seed.sql" file into my nitro environment. I am using Postgres. During the import I am getting a

ERROR:  syntax error at or near "\"
LINE 289: \.

during the import

Steps to reproduce

  1. install project locally via nitro
  2. import "seed.sql" DB into local "europa" DB.

Additional info

  • Craft version: craftcms/cms": "^4.0.0",
  • PHP version: 8.0.2
  • Database driver & version: postgres-13-5432.database.nitro
  • Plugins & versions:

Impossible to install following instructions

Description

nitro create craftcms/europa-museum europa
Downloading https://github.com/craftcms/europa-museum/archive/HEAD.zip ...
  … setting up project ✓
New site downloaded 🤓
Enter the hostname [europa.nitro]: 
  ✓ setting hostname to europa.nitro
  ✓ adding site ~/nitro/europa
Enter the web root for the site [web]: 
  ✓ using web root web
Choose a PHP version: 
  1. 8.0
  2. 7.4
  3. 7.3
  4. 7.2
  5. 7.1
  6. 7.0
Enter your selection: 1
  ✓ setting PHP version 8.0
Add a database for the site [Y/n] y
Enter the new database name: europa
  … creating database europa ✓
Database added 💪
Should we update the env file? [Y/n] y
.env updated!
Preparing composer...

...

Checking proxy…
  … updating proxy ✓
Updating hosts file (you might be prompted for your password)
Password:
Cleaning up...
Nitro is up and running 😃

~/nitro took 3m 0s 
➜ cd europa
nitro craft users/create --admin

connecting to europa.nitro

    Craft can’t fetch the `info` table row.                                                           
    Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'europa.info' doesn't exist    

It doesn't prompt you to choose Postgres as suggested it should in the docs. Later down the line, the whole thing fails as it can't connect to a database.

Importing Database-Dump in MySQL/MariaDB leads to errors

Description

Demo-website should work with "PostgreSQL (11.5+) / MySQL (5.7+)", however importing the database-dump leads to errors.

Steps to reproduce

  1. mysql craftcms < seed.sql
    ERROR 1193 (HY000) at line 8: Unknown system variable 'statement_timeout'

Additional info

  • Craft version: 3
  • PHP version: -
  • Database driver & version: MariaDB 10.6
  • Plugins & versions:

Inconsistent scroll behavior in Safari on macOS

Description

When I navigate to the Home, Exhibitions, and About pages in Safari on macOS—and specifically those pages—I can’t scroll down the page without first refreshing it.

This is consistent with three different external mice:

  • Logitech MX Master 3
  • HK Mira S
  • Apple Magic Trackpad 2

It looks like the locomotive-scroll library is likely to be the culprit, and its reliance on event.preventDefault() in setScrollTo() is probably a detriment to accessibility. If it’s possible to remove or replace the library and maintain this buttery-smooth scrolling that would be ideal.

Steps to reproduce

  1. Navigate to Home, Exhibitions, and About in Safari.
  2. Attempt to scroll down the page, and observe that nothing happens—as if the scroll wheel or gesture wasn’t happening.
  3. Use R to refresh the page.
  4. Repeat step 2 and observe that you’re able to scroll again.

Additional info

  • macOS version: 11.3.1 (20E241)
  • Safari version: 14.1 (16611.1.21.161.6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.