Skip to content

Latest commit

 

History

History
107 lines (69 loc) · 2.44 KB

DEPENDENCIES.md

File metadata and controls

107 lines (69 loc) · 2.44 KB

Dependencies

Abstruse requires sqlite3 and Docker to be installed.

Contents

Ubuntu Linux

  1. Install Node.JS

There are many ways installing Node.JS on Ubuntu. We will use an approach where you can later update, uninstall or use another version of Node.JS easily. First, make sure you have build-essential and libssl-dev installed.

sudo apt-get install build-essential libssl-dev -y

After you ran previous command and it has done with its work successfully its time to install nvm.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

This will load nvm in your current bash/zsh session. Now its finally time to install Node.JS:

nvm install node
  1. Install sqlite3
sudo apt-get install sqlite3 -y

Check if installation was successful with running sqlite3 command.

  1. Install Docker CE
curl -fsSL get.docker.com -o get-docker.sh
chmod +x get-docker.sh
sudo ./get-docker.sh

After script is done with its work add your user to the docker group. This will allow you running Docker containers with your user and not only root. janez stands for your username.

sudo usermod -aG docker janez

After this you need to open a new terminal where groups are populated again. There's no other way than opening new terminal/tab.

You can check if your user is in docker group with running.

id

If docker group is listed, you are on a good way. If not, check previous commands again.

Finally, start the Docker instance with running.

sudo /etc/init.d/docker start

MacOS

This guide presumes you have brew command available. If not, quickly install it with.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

...it also presumes that you have CommandLineTools installed.

xcode-select --install
  1. Install Node.JS

There are other ways of installing Node.JS on MacOS, we will use more convenient one.

brew install node
  1. Install sqlite3

Also, for sqlite3, we will use similar approach and use brew again.

brew install sqlite3
  1. Install Docker

To install Docker on MacOS, download it from here and open Docker.dmg file. You will be guided through the installation and really there is not something that you can miss.