An application for groups to fairly split & pay tabs at restaurants.
- Ruby version
Requires Ruby 2.4.0
\curl -sSL https://get.rvm.io | bash
source ~/.rvm/scripts/rvm
rvm install ruby-2.4.0
rvm use ruby-2.4.0- Development Environment Setup
Install bundler if necessary:
sudo gem install bundlerInstall dependencies:
bundle install
cd client && npm install && cd ..Create the database
rake db:create && rake db:migrateStart the dev server
rake start- How to run the test suite
bundle exec rspec- How to run linters
npm --prefix client run lint- How to auto-fix linting issues (that can be autofixed)
npm --prefix client run lint-fix-
Services (job queues, cache servers, search engines, etc.)
-
API Deployment instructions
To deploy the API:
git push heroku master- Client Deployment instructions
First clone the client repo:
git clone git@github.com:amarcher/tabbit-client.gitThen build the client and copy it into the client repo:
npm --prefix client run build
cp -R client/build/* ../PATH/TO/REPO/tabbit-client/public_html/Then commit the changes and deploy to both github & heroku:
cd ../PATH/TO/REPO/tabbit-client/
git add -A
git commit -m 'next version'
git push origin master && git push heroku master