Skip to content

Installation

José Benavente edited this page Feb 29, 2024 · 3 revisions

Ubuntu 18.04

The following installation instructions are specific to Linux, Ubuntu 18.04. This is the recommended OS to run the RVA website on.

Download & Install

In a clean Ubuntu install, run the following commands to get and run all the required services and tools:

Update & Upgrade Packages.

sudo apt-get update -y && sudo apt-get upgrade -y

Update GNU Privacy Guard.

sudo apt-get install gnupg2

Install Curl.

sudo apt-get install curl

Install NodeJS.

sudo curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh
sudo bash /tmp/nodesource_setup.sh
sudo apt-get install -y nodejs

Install Yarn.

sudo npm install -g yarn

Install MongoDB & Redis.

sudo apt-get install mongodb -y && sudo apt-get install redis-server -y

Start the mongodb & redis-server services.

sudo service mongodb start && service redis-server start

Download and Install Ruby Version Manager (RVM). Replace <username> with your unix username.

command curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
\curl -sSL https://get.rvm.io | bash -s stable
source /home/<username>/.rvm/scripts/rvm

Install Ruby 3.2.2 via RVM.

rvm install 3.2.2

With the following commands, you should be able to see your installed Ruby versions and use version 2.7.3

rvm list
rvm use 3.2.2

Mounting

Install Git.

sudo apt-get install git -y

Clone this repository to your machine and cd into it:

git clone https://github.com/Re-Volt-America/RVA
cd RVA

Ensure bundler is installed:

gem install bundler

Download and install dependencies:

bundler install

Run yarn install tasks:

yarn install
yarn build
yarn build:css

Docker

This project includes a docker-compose.yml file ready to use in order to run using Docker.

The Docker configuration is designed to work from the project folder itself, so in order to run it you must first clone this repository and cd into it:

git clone https://github.com/Re-Volt-America/RVA
cd RVA

Once inside, simply run docker compose and let it do its thing:

docker-compose up

When it finishes building and setting up, you should be able to access the site on localhost:3000.

Clone this wiki locally