Skip to content
Nutrisense backend
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
spec
storage
tmp
vendor
.gitignore
.rspec
.rubocop.yml
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru

README.md

README

Dependencies

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

Install a Ruby Version Manager (asdf used in example)

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.7.2
echo -e '\n. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo -e '\n. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc

Restart your shell and install the correct version of Ruby

asdf install ruby 2.6.3
asdf global ruby 2.6.3

Restart your shell

  1. Install Postgres
brew install postgresql

To run Postgres manually every time

brew services start postgresql

To automatically start Postgres at login

pg_ctl -D /usr/local/var/postgres start
  1. Install Gems

Go into the project directory

gem install bundler
bundle install
  1. Setup Database
bundle exec rails db:create db:migrate
  1. Seed Data
bundle exec rails db:create db:seed
You can’t perform that action at this time.