GithubHelp home page GithubHelp logo

bkell's Introduction

Abstract

The bkell project is a Clojure implementation of 'Bookkeeping'. bkell provides a Shell and API for maintaining balanced records for business transactions.

##Tooling

If you haven't already, you'll need to install these tools:

git http://git-scm.com

leiningen https://github.com/technomancy/leiningen

compass http://compass-style.org

  • install the compass plugins found in the below config file
  • compass configuration is already in bkell/public/config.rb
  • from bkell/public/ , execute compass watch

guard https://github.com/guard/guard

Download

$ git clone 'https://github.com/twashing/bkell.git'

Database

bkell requires a MongoDB to be installed, minimum version (db version v2.0.5).

Start MongoDB with command

$ sudo mongod --dbpath /data/db
```

Initialize (populate) database. _This is only needed when first installing the app_

$ lein repl => (require '[init.database :as db]) => (require 'bkell.run.run-bkell) => (db/setup)



## Run

Run the shell

$ lein repl => (require 'bkell.run.run-bkell)


Run the webapp

$ lein repl => (require 'bkell.run.run-ring) => (bkell.run.run-ring/-main)


Then in your browser, go to _localhost:8080_


## Tests

lein test - runs all tests lein test <namespace/mytest> - runs a particular test


## Bkell Usage

bkell=> (add { :tag :user :username "twashing" :password "password"}) {:username "twashing", :password "5f4dcc3b5aa765d61d8327deb882cf99", :tag :user, :_id #<ObjectId 4ed71101d36d156209ab8c83>} bkell=> bkell=> bkell=> (login {:username "twashing", :password "5f4dcc3b5aa765d61d8327deb882cf99", :tag :user}) {:previous {:username "twashing", :password "<...>", :tag :user}, :logged-in-user {:username "twashing", :password "5f4dcc3b5aa765d61d8327deb882cf99", :tag :user}, :active true} bkell=>

bkell's People

Contributors

twashing avatar murtaza-husain avatar jhohertz-work avatar

Watchers

Murtaza Husain avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.