Skip to content

Just a simple repo to calculate how much to request from people after a night out

Notifications You must be signed in to change notification settings

Geczy/money_requesting

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

money_requesting

Just a simple repo to calculate how much to request from people after a night out

How-To

  1. Clone this repo git clone https://github.com/pomkos/money_requesting
  2. Create a new conda environment with python 3.6, then install the libraries
conda create --name tip_env python=3.6
conda activate tip_env
cd money_requesting
pip install -r recommendations.txt
  1. Run within the environment with streamlit run tip_env, it will be accessible at localhost:8501

To run in "prod":

  • Create the following script
#!/bin/bash

source ~/anaconda3/etc/profile.d/conda.sh

cd /dir/to/tip_env
conda activate tip_env # activate the new conda env

nohup streamlit run tip_script.py & # run in background
  • Make it executable with chmod +x my_script.sh
  • You can exit the terminal and streamlit will continue serving the python file.
  • Cronjob to have the server start at each reboot:
crontab -e
@reboot /home/peter/scripts/payme.sh #add this line at the bottom

Screenshot

NOTE: The Submit to Database button is there for funsies only. Saving to database is not yet implemented.

Homepage

Sample Input

Sample Output

About

Just a simple repo to calculate how much to request from people after a night out

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%