Skip to content

University of Ottawa - Software Engineering Student Association

Notifications You must be signed in to change notification settings

sesa-uottawa/uottawasesa

Repository files navigation

Software Engineering Student Association (SESA) | L'Association des Étudiants en Génie Logiciel (AÉGL)

Welcome

This is the repo for the SESA website. Want to know more about SESA? Go check our home page

Install guide

This project works perfectly with ruby 2.3.3 and rails 5.0.1, you will need to use these specific versions.

First step : install rbenv (ruby version manager)

For Windows

Windows 10, you can use Cygwin or Bash on Ubuntu on Windows to install rbenv.

Then you just have to run the following commands (from the Linux tutorial )

For linux

sudo apt-get update

sudo apt-get install git-core curl zlib1g-dev build-essential libssl1.0-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs

cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.3.3

rbenv global 2.3.3

ruby -v

gem install bundler

gem install rails -v 5.0.1

cd [path to this project]

bundler install

For mac

First install Homebrew if it's not already installed

$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

Install rbenv

$ brew install rbenv ruby-build

Once done, add to your bash profile

$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

Apply to your terminal session.

$ source ~/.bash_profile

Install ruby

rbenv install 2.3.3

rbenv global 2.3.3

ruby -v

gem install bundler

gem install rails -v 5.0.1

Install Gems

cd [path to this project]
bundler install

Second step : install postgresql

You will need to install postgresql and update the /config/database.yml to connect properly to the database.

Final step : Launch the server

Just start the server with rails from the root of the project. rails server

Original by

Maintained by

See an error? Feel free to submit a pull request, open up an issue, or post on our facebook page.

Live, Laugh, Learn.