All Projects → donalmurtagh → Festivals

donalmurtagh / Festivals

Licence: apache-2.0
A Grails website that provides information about festivals

Programming Languages

groovy
2714 projects

Labels

Projects that are alternatives of or similar to Festivals

Jquery Selectric
jQuery plugin for easy manipulation and customization of HTML selects
Stars: ✭ 724 (+14380%)
Mutual labels:  jquery
Jquery Animatenumber
jQuery animate number
Stars: ✭ 768 (+15260%)
Mutual labels:  jquery
Trip.js
🚀 Trip.js is a plugin that can help you customize a tutorial trip easily with more flexibilities.
Stars: ✭ 789 (+15680%)
Mutual labels:  jquery
Hideshowpassword
Because life's too short to waste time re-typing passwords.
Stars: ✭ 734 (+14580%)
Mutual labels:  jquery
Jquery Drawsvg
Lightweight, simple to use jQuery plugin to animate SVG paths
Stars: ✭ 759 (+15080%)
Mutual labels:  jquery
Jquery.print
Easy to use, Element Printing Plugin for jQuery
Stars: ✭ 772 (+15340%)
Mutual labels:  jquery
Stupid Table Plugin
A stupidly small and simple jQuery table sorter plugin
Stars: ✭ 704 (+13980%)
Mutual labels:  jquery
Jquery Rslitegrid
Input tabular data with your keyboard
Stars: ✭ 5 (+0%)
Mutual labels:  jquery
Domtastic
Small, fast, and modular DOM and event library for modern browsers.
Stars: ✭ 763 (+15160%)
Mutual labels:  jquery
Jquery Dropdown
Bootstrap-style dropdowns with some added features and no dependencies.
Stars: ✭ 788 (+15660%)
Mutual labels:  jquery
Simplelightbox
Touch-friendly image lightbox for mobile and desktop
Stars: ✭ 744 (+14780%)
Mutual labels:  jquery
Inspinia
This is only a copy of INSPINIA - Responsive Admin Theme
Stars: ✭ 755 (+15000%)
Mutual labels:  jquery
Must Watch Javascript
A useful list of must-watch talks about JavaScript
Stars: ✭ 6,545 (+130800%)
Mutual labels:  jquery
Fsvs
Full Screen Vertical Scroll
Stars: ✭ 730 (+14500%)
Mutual labels:  jquery
Hospital Management System
"Health Care hospital" Management System is designed for manage details about hospital patient,employee and rooms(10). Designed by using HTML / CSS / JS / JQUERY/ PHP (procedural php) / MYSQL.
Stars: ✭ 5 (+0%)
Mutual labels:  jquery
Animatescroll.js
A Simple jQuery Plugin for Animating Scroll
Stars: ✭ 708 (+14060%)
Mutual labels:  jquery
Awesome Jquery
A curated list of awesome jQuery plugins, resources and other shiny things.
Stars: ✭ 770 (+15300%)
Mutual labels:  jquery
Jquery Powertip
💬 A jQuery plugin that creates hover tooltips.
Stars: ✭ 822 (+16340%)
Mutual labels:  jquery
Raytools
A very simple lightweight jQuery Data Grid table that uses jQuery & Bootstrap.
Stars: ✭ 5 (+0%)
Mutual labels:  jquery
Tableexport
The simple, easy-to-implement library to export HTML tables to xlsx, xls, csv, and txt files.
Stars: ✭ 781 (+15520%)
Mutual labels:  jquery

Build Status

Festivals

A responsive Grails website that provides information about festivals in Ireland and beyond. Features of the application include:

  • Calendars that shows festivals by time
  • Maps that show festivals by location
  • Artist Alerts - registered users can subscribe to an artist and will receive an email when that artist is added to a festival's lineup
  • Festival Alerts - registered users can subscribe to a festival and will receive an email when that festival's lineup changes
  • Registered users can rate and review festivals
  • Reminders - registered users can request to receive a reminder about a festival by email up to 10 days before it starts
  • Blog
  • Competitions
  • Web Service - a REST API allows festival data to be retrieved by location, time, festival type, etc
  • CMS pages allows administrators to add/remove/update artists, festivals, competitions, users, etc. Regular users can also add festivals to the application, but they will not appear until approved by an administrator.
  • In addition to artist and festival data entered manually by users, content is automatically imported from online sources such as last.fm, Skiddle, Eventbrite, Muzu

Run Locally

If you wish to run the application locally, you must have access to a MySQL server and the relevant Grails version installed.

Secret Configuration

After cloning this repository, a config file containing confidential parameters should be added to the conf directory, before the application is built. The name of this file must be secret.properties. You can provide environment-specific overrides for these settings by adding an additional configuration file named after the environment. For example, to override some/all of the settings in secret.properties for the production environment, add the overrides to a file named secret-PRODUCTION.properties in the same directory.

The contents of the secret configuration file(s) are described in the following subsections

Mandatory Secret Configuration

The application will fail to start unless these settings are added to the secret configuration file (or DataSource.groovy).

dataSource.username=festival
dataSource.password=changeme

Recommended Secret Configuration

If these settings are omitted, the application will start, but certain features will not work correctly. The consequences of omitting each one and (where applicable) how to remove the feature completely are described below

Google Maps API Keys

These API keys are used when calling Google Maps APIs on the server and client side. The hosts/IP addresses on which these keys can be used are configured here.

festival.googleApiServerKey=changeme
festival.googleApiClientKey=changeme
Skiddle API Key

A daily job automatically imports festival data into the database from the Skiddle events API. This job will fail unless the key below is provided.

festival.skiddle.tag=changeme

To disable this feature, simply remove the relevant Quartz class.

Eventbrite API Key

A daily job automatically imports festival data into the database from the Eventbrite web service. This job will fail unless the key below is provided.

festival.eventbrite.accessToken=changeme

To disable this feature, simply remove the relevant Quartz class.

Muzu API Key

Artist videos are retrieved from Muzu's Data API.

festival.muzuApiKey=changeme

To disable this feature, remove the artist video service and all references to it.

Last.fm API Key

To retrieve artist data and images from the Last.fm API you will need to add the following:

festival.lastFM.apiKey=changeme
Booking.com

To earn commission when users are successfully referred to http://booking.com, add the following:

festivals.bookingDotComAffiliateId=changeme
Mail Server Password

Configure the password for the SMTP account that the application uses to send email

grails.mail.password=changeme

To disable email sending, set festival.sendEmail = false in Config.groovy

OAuth2

OAuth2 is used to allow users to register and login to the application using services such as Facebook, Twitter, Google+, etc. For each provider that you wish to support, a key (AKA a client ID) and a secret must be added

oauth.${provider}.key=provider-clientId
oauth.${provider}.secret=provider-secret

For example, to support the Facebook OAuth2 provider, add the following

oauth.facebook.key=my-facebook-oauth-clientId
oauth.facebook.secret=my-facebook-oauth-secret
Airbrake API Key

Errors that occur within the application are recorded by Airbake. To use this service, you must add the following configuration

grails.plugins.airbrake.apiKey=changeme

To disable Airbrake, simply uninstall the Grails Airbrake plugin.

Password Salt

When users register, their password is salted and hashed before being persisted. Set the password salt to a random string via the setting below

systemWidePasswordSalt=choose-any-random-string-but-dont-ever-change-it

Database Configuration

When the application is run in the development environment, it is assumed that the MySQL server is running on localhost, and the name of the schema is "festival". To change these defaults update dataSource.url in DataSource.groovy.

The database tables will be automatically created by the application on startup, but the schema itself must already exist beforehand. Run show databases from the MySQL console to verify the existence of a schema with the correct name.

To fully support the most esoteric Unicode characters, MySQL should be changed to use utf8mb4 encoding by adding the following to the MySQL configuration file

[client]
default-character-set = utf8mb4

[mysql]
default-character-set = utf8mb4

[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

However in most cases, this step can be skipped as the default utf8 encoding should suffice.

Local Filesystem Access

The application requires access to the local filesystem in order to

  • Store the index created by the Searchable plugin. The location where this is stored is controlled by the compassConnection setting in Searchable.groovy

  • Store images when a new artist is added with a custom image. The location where these images are saved is controller by the festival.images.artistDir setting in Config.groovy

Launch Application

Once the steps described above have been followed the application can be started (in development mode) by running grails run-app on the command-line from the application's root directory.

The application requires a heap size of about 1 gigabyte to run, but it requires more than this to build because the optimizations applied to the front-end resources consume a lot of memory. Therefore, before running a Grails command that invokes the build (e.g. grails war or grails run-app) it is recommended that you set the initial/max heap size to at least 600/1200 megabytes.

Commands that run in the development environment will automatically choose the appropriate memory settings on account of the grails.project.fork configuration. In other environments, the memory settings can be applied by setting the GRAILS_OPTS environment variable, e.g. export GRAILS_OPTS="-Xms600m -Xmx1200m"

By default the following users will automatically be created on startup:

Username Password Role
[email protected] password Administrator
[email protected] password User

These defaults can be changed in BootStrap.groovy

Automated Tests

Before running the integration tests for the first time an empty MySQL schema named "festival_test" must be created on localhost. By default, the tests access this schema with username "root" and a blank password. The default test database settings can be changed in DataSource.groovy.

Once the schema has been created, the unit and integration tests can be executed by running grails test-app on the command-line from the application's root directory.

License

This application is made available under the Apache 2 license. It includes a copy of the Highcharts and Isotope libraries, which are not free for commercial purposes, so if you wish to use this application for commercial purposes you must either remove these libraries, or purchase a commercial license for them. All other third-party software included in this application may be used free-of-charge for both commercial and non-commercial purposes.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].