IdeaBase's client proposal system
- Create a new repository under IdeaBase
- Install Tower or GitHub Desktop (or use git in a terminal or shell)
- Log into GitHub and clone the new repository
- Download the IdeaBase Starter Kit 2.0 .zip file and copy the files into your cloned repository
- Commit and push changes to your repository using "Push - Tower" or "Publish - Github Desktop"
- Install MAMP Pro
- Under ports, check the setting "set server ports to 80, 81, 443, etc..."
- In the hosts tab, click the plus button underneath the table where "localhost" is listed to create a new host
- If using a CMS, create a local database and give it a name
- After creating the host, select it and set the document root to the
public/
orhtml/
folder, not the project root - Verify that the password for your database' is "root"
- Start the local server by pressing the start button in MAMP
- In a terminal or shell, use cURL to download Composer as a .phar (PHP archive) file in your home directory
curl -sS <https://getcomposer.org/installer> | php ~/
- Move the .phar file to the local computer binaries folder, and enter your password when prompted by the
sudo
commandsudo mv ~/composer.phar /usr/local/bin/
- Establish a global alias for Composer in your shell profile
vim ~/.bash_profile alias composer="php /usr/local/bin/composer.phar"
- Execute
composer
in your project to make sure the alias works globally - If there are any issues with plugins, composer's PHP version can be specified in
craft/composer.json
and project dependencies can be updated withcomposer update
"config": { "platform": { "php": "7.0.15" } }
- Rename
craft/config/db-backup.php
todb.php
- Edit
craft/config/db-backup.php
file with your local database name - You can "Ignore" the db.php file once it's been edited with the local info so there's no chance of it being overwritten to production
- Important: Rename the
public/htaccess
file to.htaccess
- In craft/config/general.php - change the LOCAL url to your local URL
- Go to
http://example.web/admin
to begin CMS setup
- If using Pattern Lab, change the "htaccess" file in the public/lab folder to .htaccess, which will automatically redirect visitors at
/lab
to the/lab/public
directory
- Install Node.js
- In a terminal or shell, install Grunt and Sass globally with npm
npm install -g grunt-cli sass
- In your project's web document root (the
public/
orhtml/
folder), install the npm packages from package.jsonnpm install
- Navigate to your project's web document root (the
public/
orhtml/
folder) and execute the commandgrunt
to ensure that Grunt is working properly
- Compress (minify) CSS processed from SASS
- Autoprefix CSS
- Combine and compress all JavaScript files
- Autobuild the Pattern Lab files (if needed)
- Autorefresh the browser when HTML or CSS files are updated