Skip to content

Dev: Ubuntu 18.04

Patrick Sachs edited this page Nov 26, 2018 · 1 revision

Setting up a development server on Ubuntu 18.04

This guide explains how to setup a development server on Ubuntu 18.04.

Keep in mind that this will not be a production ready server and is only aimed at contributors or people that want to tweak Helios to their liking.

Install Node.JS

We'll need to Node.JS ecosystem to use Helios. Currently some libraries make problems with version 11 so we're stuck on 10 for now(You'll get seriously cryptic errors on Node.JS 11).

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

If you plan on running you development server on port 80/443 you'll also need to run this command to allow Node to bind itself to these low ports:

sudo setcap 'cap_net_bind_service=+ep' /usr/bin/node

Install MongoDB

Just go ahead and install MongoDB:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org

The local MongoDB service can then be started/stopped using sudo service mongod start/stop. The service is not automatically started on system start.

If you want to have a visuals tool to view your database I recommend Robo3T.

IDE

Visual Studio Code

Setting up Helios

Clone helios to where ever you usually clone development repos to.

git clone git@github.com:PatrickSachs/helios.git
Clone this wiki locally