Code Monkey home page Code Monkey logo

flatexpensemanager's Introduction

FlatExpenseManager

What is it?

This tool lets you help manage shared payments with your flatmates/roommates.

image

Setup

You neeed to modify some values in app.py

notification_api_keys = {  # Populate with key = Flatmate name value = Flatmate alertzy api key
    "Eli": "myapikey1111",
    "Example_user_1": 'myapikey22222',
    "Example_user_2": "myapikey33333"
}

Alertzy is an app for iOS and Android, this is what lets you get notifications when a transaction is added/paid Each of your flatmates needs to sign up here and provide their API key https://alertzy.app/

db_username = ''  # mongodb atlas database username
db_password = ''  # password
connection_string = ''
client = MongoClient(connection_string)
db = client['FlatExpenses']  # Either change these or make your database & collection called this
collection = db['transactions']

Add a new mongodb atlas and use the connection string here. Either create a database called 'FlatExpenses' and a collection inside called 'transactions' or modify these values to your current database.

That's it! Now either host locally or online (:

Room for improvement

  • Allow expenses to be sent to an individual user

Asynchronous backend - currently sending an alert blocks other actions. Why I don't fix this? If I had made this project from scratch I would have, however one of my flatmates started this as a 'chore notifier' and I added the transactions feature. I didn't want to steal any of their code so I only included my parts. Flask & Requests could be replaced with Quart & AioHTTP very easily to avoid blocking. However considering this project is intended for flats, so small userbases I don't think it will be an issue.

flatexpensemanager's People

Contributors

eli-chandler avatar

Stargazers

Joy Zhu avatar  avatar

Watchers

 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.