Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 2.64 KB

README.md

File metadata and controls

63 lines (44 loc) · 2.64 KB

#collectionstash

##Installation

Library Dependencies

  • WAMP (or really any webserver but WAMP is easiest)
  • MySQL 5.6.x (see WAMP)
  • PHP 5.4.x (see WAMP)
  • npm
  • Bower
  • Composer
  • CakePHP 2.6.x

Installing project

Clone this repo

git clone https://github.com/SomethingSexy/collectionstash

Run npm in project root. That should also pull down all bower dependencies.

npm install

Run composer install.

composer install

Clone Cakephp version 2.6.x to the "lib" directly in the root. I don't think the project has one, so make the directory first. Should end up being collectionstash/lib/Cake

Configuration

Apache

httpd.conf

DocumentRoot "F:/Development/projects/collectionstash/app/webroot"
<Directory "F:/Development/projects/collectionstash">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
    Allow from localhost
</Directory>

PHP

Make sure php_soap, php_curl, and php_openssl extensions are enabled.

Tech

Current List

  • CakePHP for the server framework. Some stuff is still using traditional MVC. These are either older pages or pages that SEO is more important.
  • RequireJS for module loading. Not all pages have been converted over to this so there are some pages using a more traditional format.
  • Backbone/Marionette for client-side framework. Some pages are not using Backbone at all, either older pages or smaller enough ones that it did not require a full framework. There are also some pages that were using straight up Backbone before I started to use Marionette. You will see that some of the app pages are a little goofy because of this. I had to bootstrap the code until I can convert them over.
  • Mustache for templates. I started to use dustjs but I have dropped it in favor or Mustache. However, not everything has been converted over yet.
  • Bootstrap for the UI framework. The entire site has been converted to bootstrap, no more jquery-ui.

Notes

Most of the script files in webroot/js at the root level are legacy. All newer stuff is crammed into folders.

The server-side is all PHP. It isn't bad but it is also PHP so have to deal with some of that BS. There is some good stuff there and some bad stuff there. In some of the original files you can definitely tell that I was still trying to figure it out.

The admin pages are a bit rough. Since I am the only one who uses them, I haven't spent the time to update the UI.