Ensure the latest version of Node and npm are installed here.
-
Get all of the required components from git:
git clone https://github.com/michaeliwaikato/ufdl-frontend.git git clone https://github.com/michaeliwaikato/ufdl-js-client.git git clone https://github.com/michaeliwaikato/ufdl-image-annotator.git
-
Move into the annotator directory and build it:
cd ufdl-image-annotator/react-image-annotate npm install npm run-script build
-
Setup the frontend and install the required modules:
cd ../.. cd ufdl-frontend/frontend-react npm install
-
Ensure React is only installed once between the frontend and the annotator (may require elevated permissions):
cd node_modules/react && npm link cd ../react-dom && npm link cd ../../../../ufdl-image-annotator/react-image-annotate/dist && npm link react && npm link react-dom
Ensure you are in the ufdl-frontend/frontend-react directory and run:
npm start