Skip to content

Set up the development environment under Ubuntu 16.04

Till Mossakowski edited this page May 27, 2017 · 3 revisions

Installation of frontend under Ubuntu

utilities

sudo apt install -y curl git npm

get latest version of nodejs

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt install -y nodejs

ember

sudo npm install -g ember-cli

yarn

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install yarn

get sources

git clone https://github.com/ontohub/ontohub-frontend.git
cd ontohub-frontend

javascript dependencies

yarn install --pure-lockfile
yarn run bower install 
bower install 

Configure the frontend to run without a backend (using mocking data)

  • Set ENV['ember-cli-mirage']['enabled'] = true in the config/environment.js for the development environment (simply replace false by true in the highlighted line).

Run the ontohub-frontend

After the dependencies have been installed, you can start the Ember app.

  • Open the Windows PowerShell in your clone of the ontohub-frontend repository and type:
    yarn run ember serve
    
    The first time you run this, it may take some minutes to compile the app and boot. From the second time on, it will startup more quickly.