Public | Automated Build

Last pushed: 2 years ago
Short Description
Share Debts server.
Full Description

Share Debt Server


This project uses Feathers. An open source web framework for building modern real-time applications.

Getting Started

  1. Make sure you have NodeJS and npm installed.
  2. Install your dependencies

     cd path/to/share-debt; npm install
  3. Start your app

     npm start

Environment Variables

All urls should be with http://, amqp:// or mongodb://.

DATABASE_URL - db connection url.


POST /debts - add debt

{ amount: 200,
  name: 'beer',
  to: '575ab12b2b222ca7084c347a',
   [ '575ab12c2b222ca7084c347b',
     '575ab12c2b222ca7084c347d' ] }

POST /debts/pay

{ from: '575ab19fcd9ae03d09b349a7',
  to: '575ab19fcd9ae03d09b349a6',
  amount: 10 }

GET /totals/to - have debts to me
GET /totals/from - my debts

[ { from: '575ab1d08e60dc9609272a68',
    to: '575ab1cf8e60dc9609272a67',
    amount: 66.66666666666667,
    id: '575ab1d08e60dc9609272a6c',
    fromName: 'Vasya',
    toName: 'Petya' }

POST /users - sign up

  email: String,
  password: String,
  number: String,
  name: String


Simply run npm test and all your tests in the test/ directory will be run.


Copyright (c) 2016

Licensed under the MIT license.

Docker Pull Command
Source Repository