Introduction
This post will help with installation of the OCW User Interface.
Before you Begin
These instructions assume that all the required Python modules are installed on your local machine.
If you would like to install these modules on your local machine, follow the steps defined in the Easy-OCW - A Guide to Simplifying OCW Installation documentation.
Installation Guide
Install Node
Download and install NodeJS from the project's website.
Install the Necessary Dependencies Using Node
Run the following commands from the project's root directory to install the necessary dependencies. It's possible that you'll need to run the install command as root depending on your system setup.
cd ocw-ui/frontend npm install
It might take a bit of time for all the dependencies to be downloaded. Please be patient. If you run into any problems please report them to the mailing list so we can work on fixing them.
Install the Necessary Libraries and Extensions
Next we'll install the libraries and extensions that the project depends on using Bower. Again, you may need to run the install command as root depending on your system setup.
./node-modules/bower/bin/bower install
Start the Frontend Node Server
Next we will use Grunt to serve our files for us.
./node-modules/grunt-cli/bin/grunt serve
Setup the Backend Services
Start up the backend services.
cd ../backend python run_webservices.py
Enjoy!
Your browser should have been automatically directed to the application when you started up the frontend using grunt serve. If it didn't, you can do so manually by visiting http://localhost:9000/#/evaluate in your browser.
Symlinking frontend to backend to allow for serving of files with bottle. This will require a patch or two. Currently isn't working.
Description of technologies for devs or interested users
Instructions on how to use yo, the yeomann angular generator, grunt, and bower for development.