Bill-BuDyy / Bill-Buddyy-Backend

Bill Buddy is a user-friendly expense-sharing app designed to simplify splitting bills and expenses among friends, roommates, or groups. The app helps users keep track of shared expenses, calculates individual contributions, and facilitates seamless settlement. With features like real-time expense tracking, automated calculations & user-friendly UI
0 stars 3 forks source link

Bill-Buddy

Installation

Clone the repo to your device.

  1. Make sure you have installed yarn on your device

  2. Install the node modules:

yarn install

Setup

  1. Copy and Configure the .example.env then rename it as .env, then it should look like
ENV=DEV
MONGODB_URI=mongodb://localhost:27017/
PORT=4000
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_USER_REDIRECT_URI=
GOOGLE_ADMIN_REDIRECT_URI=
JWT_SECRET=
FRONTEND_URL=
....
  1. Copy and Configure the config.example.ts then rename it as config.ts, then it should look like
const config = {
    db: "bill-Buddy",
    port: parseInt(process.env.PORT ?? "4000"),
};

export default config;
  1. Start the server in development mode:
yarn run dev

The server should be ruuning at your local host port 4000.

The frontend for this: https://github.com/Bill-BuDyy/Bill-Buddy-App

Join our Discord Channel for more info: https://discord.com/invite/tuWBYEg6