Skip to content

rachit995/splitwise-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💰 Splitwise API

Create group with your friends and split bills without any hassle.

Demo 🖥️

You can test the live API here.

Features ⭐

⚡️ Add users/members to the application (CURD)
⚡️ Create groups and add new members to the group (CRUD)
⚡️ Add expenses in the group and let the application handle all the spliting

Folder Structure 📁

.
├── Procfile
├── README.md
├── app.py
├── application
│   ├── __init__.py
│   ├── config
│   │   └── __init__.py
│   ├── controllers
│   │   ├── expense.py
│   │   ├── group.py
│   │   ├── simplify.py
│   │   ├── transaction.py
│   │   └── user.py
│   └── models
│       ├── expense.py
│       ├── group.py
│       ├── transaction.py
│       ├── user.py
│       └── user_group.py
├── practice.py
├── requirements.txt
├── runtime.txt
└── wsgi.py

Entry point is app.py. All the models are being stored in models. All the routes are structured in controllers.

Install & Build 🛠️

Step 1: Install all the dependencies.

pip install -r requirements.txt

Step 2: Run the server. (Make sure .env is already has all the required environment variables)

python app.py

Deployment 📦

This is a Flask backend application hosted on Heroku.

The wsgi.py contains the direct run code for the application. It is being executed by gunicorn in Procfile. Heroku directly executes Procfile and starts the server.

This API has also been documented at Postman. You can test it here.

About

Create group with your friends and split bills without any hassle

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages