CodeTheory - a simple web application which enables a user to input and track blood glucose readings and view reports on those readings.
- OS: Ubuntu 15.10 (64-bit)
- IDE: RubyMine 2016.1
##Installation
-
Running a fresh install of Ubuntu 15.10
-
Install some dependencies for Ruby:
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev
-
Install Ruby via rbenv:
-
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
-
git clone https://github.com/rbenv/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
-
rbenv install 2.3.0
-
rbenv global 2.3.0
-
ruby -v
-
-
Install Bundler gem:
- gem install bundler
-
Install NodeJS version 4
-
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
-
sudo apt-get install -y nodejs
-
-
Configure Git
- git config --global color.ui true
- git config --global user.name "NAME"
- git config --global user.email "[email protected]"
- ssh-keygen -t rsa -C "[email protected]"
-
Install Rails version 4:
-
gem install rails -v 4.2.4
-
rbenv rehash
-
-
Download/extract
-
Navigate to directory
-
Run to setup database:
- 'rake db:create'
- 'rake db:migrate'
- 'rake db:seed' (optional)
-
Run 'rails s'
-
Seeded Login credentials (optional):
- Email: '[email protected]'
- Password: 'test1234'