ontherocks | repo contains all of the templates | Content Management System library
kandi X-RAY | ontherocks Summary
kandi X-RAY | ontherocks Summary
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.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ontherocks
ontherocks Key Features
ontherocks Examples and Code Snippets
Community Discussions
Trending Discussions on ontherocks
QUESTION
In Scala - we can do extension methods like this:
...ANSWER
Answered 2017-Jul-24 at 13:51These are three completely separate concepts that do different things.
An extension method allows you to add a method to a class that already exists. This can lead to a nicer API than creating a method that takes in an object of that class as a parameter.
The builder pattern allows you to construct an object with many options and parameters by setting these parameters in a mutable object first, then calling a "build" method to initialize your (typically immutable) object you are creating. This helpful because it removes the need to a huge constructor with many arguments and is especially useful when some of those arguments are optional with defaults.
A fluent API means that "setter" methods will return the object itself instead of returning Unit/void. This allows for an API where you can chain method calls together. for example using a fictional Point2d class
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ontherocks
Download/clone the repo on your computer $ git clone https://github.com/pixelandtonic/ontherocks.git
Set the permissions on craft/storage/ to 777 $ cd ontherocks $ chmod 777 craft/storage/
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
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
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
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.
Import SQL/ontherocks.sql into your new database mysql>source SQL/ontherocks.sql
Fill in the proper MySQL credentials in craft/config/db.php (from step 6)
Create a new virtual host with the hostname “ontherocks.dev” that points to the public/ folder
Edit your hosts file to resolve ontherocks.dev to 127.0.0.1, if necessary
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page