• Stars
    star
    107
  • Rank 322,588 (Top 7 %)
  • Language
    CSS
  • Created over 11 years ago
  • Updated about 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

On the Rocks Craft demo site

This repo contains all of the templates, front-end resources, and a MySQL DB dump for On the Rocks, a demo site built with Craft.

It has the following features:

  • Multiple sections (“Cocktails”, “Ingredients”, and “Blog”)
  • A local asset source (“Drinks”)
  • A Links field pointing to the Drinks asset source, used by the Cocktails and Ingredients sections
  • A Links field pointing to entries in the Ingredients section, used by the Cocktails section
  • A global set called “Homepage” for editing the homepage fields
  • A global set called “Globals” with a “Meta Description” field for editing the <meta name="description"> tag’s content attribute
  • A single layout template which all other site templates extend
  • Front-end user registration, login, and password resetting
  • A custom 404 template

Editions

The site is running the Pro Edition of Craft and as long as you’re running the site from http://ontherocks.dev, you can use all of the features if provides for free for an unlimited time. You will even have the option to install the Client or Personal Editions, if you want to play around with them.

Installation

To get On the Rocks running locally, follow these instructions:

  1. Download/clone the repo on your computer

     $ git clone https://github.com/pixelandtonic/ontherocks.git
    
  2. Set the permissions on craft/storage/ to 777

     $ cd ontherocks
     $ chmod 777 craft/storage/
    
  3. Set the permissions on craft/config/ to 744, 774, or 777 depending on the relationship between the user that Apache/PHP is running as and the user who owns the craft/config folder. (See the Craft installation docs for details.)

     $ chmod 774 craft/config
    
  4. Download the latest version of Craft from buildwithcraft.com

     $ curl -L http://download.buildwithcraft.com/craft/2.0/2.0.2525/Craft-2.0.2525.zip -o /tmp/Craft.zip
    
     *Note:* In the above example, replace the version (2.0) and the build (2525) numbers with the latest from http://buildwithcraft.com/updates
    
     $ unzip /tmp/Craft.zip -d BaseCraft
    
  5. Move the craft/app/ folder from Craft.zip into ontherocks/craft/

     $ cp -R BaseCraft/craft/app craft/app
     $ rm -R BaseCraft && rm /tmp/Craft.zip
    
  6. Create a new MySQL database called “ontherocks”

     $ mysql -u root -p
     Enter password:
     mysql>
    
    CREATE DATABASE ontherocks CHARACTER SET utf8 COLLATE utf8_unicode_ci;
    GRANT ALL ON ontherocks.* TO 'rocks_user'@'localhost' identified by 'letmein';
    FLUSH PRIVILEGES;
    USE ontherocks;

    This can also be done via a management tool like phpMyAdmin.

  7. Import SQL/ontherocks.sql into your new database

    mysql>source SQL/ontherocks.sql
  8. Fill in the proper MySQL credentials in craft/config/db.php (from step 6)

  9. Create a new virtual host with the hostname “ontherocks.dev” that points to the public/ folder

  10. Edit your hosts file to resolve ontherocks.dev to 127.0.0.1, if necessary

Now you should be able to point your web browser to http://ontherocks.dev/admin. You should either see a Craft login screen, or a prompt telling you that some database updates need to be run. If it’s the latter, just click “Finish up”.

Now point your browser at http://ontherocks.dev. You should see the On the Rocks homepage.

Logging in

The Craft CP is located at http://ontherocks.dev/admin. You can log in with the following credentials:

Username: admin Password: password

More Repositories

1

vuepress-theme-craftdocs

VuePress theme for Craft CMS documentation
Vue
107
star
2

DigitalProducts

Sell digital products with Craft Commerce
PHP
50
star
3

CategorySources

View your entries by their category-based taxonomies in Craft
PHP
47
star
4

Events

Sample Craft plugin demonstrating element types
PHP
41
star
5

CodingStandards

Pixel & Tonic’s official coding standards for Craft and other projects
40
star
6

garnishjs

UI toolkit by Pixel & Tonic
JavaScript
39
star
7

matrix_multi_upload

Upload multiple files to Matrix at once, powered by Plupload
CSS
36
star
8

pt_field_pack

Enhanced replacements for the Checkboxes, Select Dropdown, Multi Select, and Radio Buttons fieldtypes bundled with EE2
PHP
35
star
9

ColdCache

A cold-hearted cache tag for Craft.
PHP
24
star
10

RedactorI

Provides a “Redactor I” field type for Craft CMS based on the legacy version of Redactor.
JavaScript
20
star
11

AssetSubfolderAccess

Limits user groups to only access certain asset subfolders
PHP
17
star
12

CommerceEasyPost

Easy Post shipping plugin for Craft Commerce
PHP
17
star
13

cp_css_js

Allows you to add custom CSS and JS to the Control Panel pages
PHP
17
star
14

PowerNap

Sample Task plugin
PHP
15
star
15

Parsedown

Parsedown plugin for Craft
PHP
15
star
16

CommerceStockNotifier

Notifies store administrators when a Craft Commerce site is running low on stock
PHP
12
star
17

matrix_url_title

Unique URL Title celltype for Matrix on EE2
PHP
11
star
18

craft-fixfks

Scripts for restoring missing foreign keys on a Craft install
PHP
9
star
19

fieldframe

Fieldtype framework for EE1
PHP
8
star
20

BigDates

Shows the full timestamp for Post and Expiry dates on Entry indexes in Craft CMS.
PHP
6
star
21

CommerceCurrencyRates

Example plugin to show how to update currency rates from an API
PHP
6
star
22

pt_switch

Sliding “lightswitch” fieldtype for EE1 and EE2 with customizable labels and values
PHP
6
star
23

wygwam_upload_tags

EE2 extension that parses Wygwam’s Upload Directory settings for {username}, {member_id}, and {group_id}
PHP
6
star
24

RedactorStyles

Adds the “Styles” plugin to Rich Text fields in Craft
JavaScript
6
star
25

craftcommerce-ogone

PHP
6
star
26

pt_list

List-making fieldtype for EE1 and EE2 with sortable, editable, and deletable rows
PHP
5
star
27

Iterate

EE2 plugin that iterates through one or more pipe-delimited strings, passed in as parameters
PHP
5
star
28

wygwam_super_admin_source

EE2 extension forces Wygwam’s “Source” toolbar button to always show up for Super Admins
PHP
5
star
29

wygwam_structure_pages

ExpressionEngine extension that adds Structure pages as a Link Type in Wygwam’s Link dialog
PHP
5
star
30

pt_pill

Pill select fieldtype for EE1 and EE2 with customizable option labels and values
PHP
5
star
31

prompt

A Go package to ask for user input on the command line
Go
4
star
32

matrix_radio_group

Turns your entire Matrix field into a big radio group, where each row gets a single radio button
PHP
4
star
33

FF2EE2

FieldFrame-to-EE2 Data Converter
PHP
4
star
34

assets_expiry_date

EE2 extension that adds an Expiry Date metadata field to file HUDs
PHP
4
star
35

matrix_comments

EE2 extension that enables per-Matrix-row commenting
PHP
4
star
36

wygwam_template_links

ExpressionEngine extension that adds a “Templates” Link Type to Wygwam’s Link dialog
PHP
3
star
37

wygwam_no_upload_tab

Removes the “Upload” tabs from the Link, Image, and Flash dialogs, forcing authors to click the “Browse Server” buttons and upload files via CKFinder
PHP
3
star
38

craftcommerce-wirecard

PHP
2
star
39

numstyle

EE2 plugin that converts numbers to letters or roman numerals
PHP
2
star
40

DotAllCommerceBerlin2018

Commerce Workshop Berlin 2018
HTML
2
star
41

matrix_tidy_cols

EE1 extension that cleans up your Matrix field-column associations after duplicating a site with MSM.
PHP
2
star
42

flysystem-google-cloud

Google Cloud adapter for Flysytem
PHP
1
star
43

craftui

JavaScript
1
star