Giter Site home page Giter Site logo

inab's Introduction

INAB

Build Status

INAB is a budgeting tool.

This is a monorepo that contains different packages

Use

There are several ways of deploying and using INAB.
The simplest solution that works out of the box is to use the existing docker image.

docker run -d -p 8080:8080 -v $(pwd)/database:/db hwaterke/inab:api

This starts the server. You then need to build and serve the frontend code yourself. You can then access INAB api at http://localhost:8080/api

When running the docker image, it is recommended to add another environment variable. -e "JWT_SECRET=some_secret". This is optional, a random secret will be used if none is provided. But providing one will allow your users to stay connected after a container restart.

Production build

If you want to create the docker image yourself, execute the following steps.

  • Navigate to the server folder.
  • Execute ./build-docker.sh

You can then run inab by using:

docker run -d -p 8080:8080 -v $(pwd)/database:/db hwaterke/inab:api

Migrate database

If you've been using a previous version of INAB, you will need t migrate your database. Make a copy of your existing database e.g. old_database.db. Start the new version of INAB and let it create a new (empty) database.

Run the following:

docker run --rm -v $(pwd):/app/migration/dbs hwaterke/inab-migration dbs/old_database.db dbs/new_database.db

This will migrate all the data in the old database to the new database that you can then use with the latest version of INAB.

Development

If you want to contribute and help developing INAB, you can use the development configuration.

The docker-compose.yml file at the root of the project starts the server in development mode.

With the following command docker-compose up, you will get the following:

  • No need to install ruby (server)
  • Server (API) listens on port 8080
  • Any change to the server code restarts it

Once the server is up and running, you need to bootstrap the repo and compile the shared code:

yarn lerna bootstrap
cd packages/inab-shared
yarn compile
yarn compile:flow

You can then start the client in dev mode by issuing the following commands in the packages/inab-web folder:

yarn
yarn start

Note that in development, the server uses an in-memory database.

Some todos

  • Aggregate stats per budget category
  • Use bootstrap via npm (css only, avoid javascript by using reactstrap)
  • Fix onBlur on the inputs in the budget table
  • Fix the select with add new value
  • Create a design identity (palette etc.)
  • Disallow transfers between an account and itself
  • Reorder categories by drag and drop
  • Category goals
  • Native Mobile App
  • Form validation with redux-form
    • Create a generic input Field with label and errors handling
  • Remove arrow function creation in render methods (performance)
  • Add a button of type submit to the forms to allow ENTER

inab's People

Contributors

gregoirevda avatar hwaterke avatar

Watchers

 avatar  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.