xyzshantaram / spliit-sqlite

Free and Open Source Alternative to Splitwise. Share expenses with your friends and family.

Home Page:https://spliit.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spliit

Spliit logo

Disclaimer: This is my personal fork of Spliit that uses SQLite instead of Postgres as the db solution.

Spliit is a free and open source alternative to Splitwise. You can either use the official instance at Spliit.app, or deploy your own instance:

Contribute

Please don't contribute here unless you want to help with SQLite stuff! Contribute to the parent repo (https://github.com/spliit-app/spliit).

Consider supporting Sebastien, the original developer

Run locally

  1. Clone the repository (or fork it if you intend to contribute).
  2. Run npm install to install dependencies. This will also apply database migrations and update Prisma Client.
  3. Run npm run dev to start the development server.

Deploy

  1. npm install
  2. npm run build
  3. npm run start

Opt-in features

Expense documents

Spliit offers users to upload images (to an AWS S3 bucket) and attach them to expenses. To enable this feature:

  • Follow the instructions in the S3 bucket and IAM user sections of next-s3-upload to create and set up an S3 bucket where images will be stored.
  • Update your environments variables with appropriate values:
NEXT_PUBLIC_ENABLE_EXPENSE_DOCUMENTS=true
S3_UPLOAD_KEY=AAAAAAAAAAAAAAAAAAAA
S3_UPLOAD_SECRET=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
S3_UPLOAD_BUCKET=name-of-s3-bucket
S3_UPLOAD_REGION=us-east-1

You can also use other S3 providers by providing a custom endpoint:

S3_UPLOAD_ENDPOINT=http://localhost:9000

Deduce category from title

You can offer users to automatically deduce the expense category from the title. Since this feature relies on a OpenAI subscription, follow the signup instructions above and configure the following environment variables:

NEXT_PUBLIC_ENABLE_CATEGORY_EXTRACT=true
OPENAI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXX

License

MIT, see LICENSE.

About

Free and Open Source Alternative to Splitwise. Share expenses with your friends and family.

https://spliit.app

License:MIT License


Languages

Language:TypeScript 97.6%Language:JavaScript 1.6%Language:CSS 0.8%