Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Prerequisites Install Guide for Fedora

mike-tulubaev edited this page Jan 19, 2021 · 1 revision

Not yet tested on Fedora

This article will guide you through setting up OpenMappr for development on Fedora.

Inside a terminal window, perform the following steps:

1. Update your dnf sources

sudo dnf update

2. Remove any old versions of docker

sudo dnf remove docker \
                docker-client \
                docker-client-latest \
                docker-common \
                docker-latest \
                docker-latest-logrotate \
                docker-logrotate \
                docker-selinux \
                docker-engine-selinux \
                docker-engine -y

3. Install OpenMappr dependencies via dnf

sudo dnf install nodejs npm git-all python2 gcc @development-tools \
                 ruby ruby-devel rubygems rubygem-sass -y

4. Install the sass and compass gems

gem install sass compass

5. Install docker via dnf

sudo dnf install dnf-plugins-core -y >>/dev/null
sudo dnf config-manager \
    --add-repo \
    https://download.docker.com/linux/fedora/docker-ce.repo >>/dev/null
sudo dnf install docker-ce docker-ce-cli containerd.io -y >>/dev/null

6. Start and enable the docker service through systemd

sudo systemctl start docker
sudo systemctl enable docker

7. Install docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose

8. Download and install nvm (Node Version Manager)

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

9. Install and use Node version 8.12.0

nvm install 8.12.0
nvm use 8.12.0

10. Install global NPM packages needed for development

npm install -g yo bower grunt-cli

That's it! Continue to the main readme for instructions on running the app.