Skip to content

Latest commit

 

History

History
88 lines (68 loc) · 1.44 KB

README.md

File metadata and controls

88 lines (68 loc) · 1.44 KB

Do-meal

Prerequisites

Node.js >= 6.x
SQLite >= 3.7.17

If you don't have rbenv.

  • In the case of Debian distribution.

    $ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
    $ cd ~/.rbenv && src/configure && make -C src
    $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    $ mkdir -p "$(rbenv root)"/plugins
    $ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
    $ rbenv install 2.4.2

    Add this to .bashrc.

    if which rbenv > /dev/null; then
    eval "$(rbenv init -)";
    fi

    and

    $ source .bashrc
  • In the case of Mac OS

    $ brew install ruby-build
    $ brew install rbenv
    $ rbenv install 2.4.2

    Add this to .bash_profile.

    if which rbenv > /dev/null; then
    eval "$(rbenv init -)";
    fi

    and

    $ source .bash_profile

If you don't have bundler

$ rbenv local 2.4.2
$ gem install bundler

Install

$ git clone [email protected]:kumano-dormitory/Dormitory_meal_messenger.git
$ cd Dormitory_meal_messenger
$ git checkout -b rails origin/rails
$ bundle install --path vendor/bundle

Datebase

meals table
date date
time-zone-num int
menu string
single-ticket-price int
multi-ticket-price int
soldout bool
record table
meal-id reference
time time
left int