From f8dbcb7041b88e0eab2c641c547978f7032f6151 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Thu, 26 Jul 2018 21:01:48 +0200 Subject: [PATCH] More detailed README --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 5017edd..224b59a 100644 --- a/README.md +++ b/README.md @@ -1 +1,16 @@ # [Tab](https://zeus.ugent.be/tab) [![Analytics](https://ga-beacon.appspot.com/UA-25444917-6/ZeusWPI/Tab/README.md?pixel)](https://github.com/igrigorik/ga-beacon) [![Code Climate](https://codeclimate.com/github/ZeusWPI/Tab/badges/gpa.svg)](https://codeclimate.com/github/ZeusWPI/Tab) [![Coverage Status](https://coveralls.io/repos/ZeusWPI/Tab/badge.svg?branch=master&service=github)](https://coveralls.io/github/ZeusWPI/Tab?branch=master) [![Build Status](https://travis-ci.org/ZeusWPI/Tab.png?branch=master)](https://travis-ci.org/ZeusWPI/Tab) + +## Deploy + +Just run `cap production deploy`. You might need to edit some config files +on the server. + +## Adding clients + +A client can see and modify balances of other users. + +To add a client, connect +to the server, `cd production/current`, then run `RAILS_ENV=production bundle exec rails console`. +Then you can add clients with `client = Client.create name: "Tap"`. + +If you want the client to be able to make transactions, run: `client.add_role :create_transactions` in the console.