You will need to install these, and should probably do so globally. (These instructions are for a fresh install of OSX El Capitan)
-
Install xcode: xcode Open xcode once it is installed, open xcode, agree to license agreements, then close xcode.
-
Install Homebrew Open up a terminal window, and paste this in :
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Install Github Desktop - Github
-
Install nodejs and npm
brew install node
- Install bower
npm install -g bower
- Install pip
sudo easy_install pip
- install virtualenv
sudo pip install virtualenv
Once Those are installed, get a virtual environment up, and install the site and it's dependencies. Paste these into the command line, one line at a time.
virtualenv nemio
cd nemio
source bin/activate
git clone https://github.com/NewEconomyMovement/nem-website.git
cd nem-website
bower install
npm install
You must add a config file, this houses the google docs info.
Make sure the config file is at the same level as gulpfile.js
nano config.json
you must either create a google doc, or get the keys from Saul.
I will fix this in the future so it can be built without worrying about the config.json
file.
foundation watch
or
npm start
Now you should have a webpage that opened to localhost:8760
.
This port can be changed in gulpfile.js
.
To build for production, use:
foundation watch --production
This will minify JS, compress images, etc.
Take the contents of the dist
folder, and place them on your server, easy as that :)
Note the majority of the gulpfile, and most of the code, is thanks to Zurb Foundation