Skip to content

diozenio/orbit-backend

Repository files navigation

Orbit Backend

Backend service to support the Orbit application.

Features

  • RESTful API for managing personal expenses
  • Expense transactions categorized by type
  • CRUD operations for:
    • Transactions
    • Transaction categories
  • Integration with Prisma ORM
  • Organized HTTP routes

Getting Started

Prerequisites

Before you begin, make sure you have the following installed:

  • Node.js >= 18
  • Yarn
  • Docker and Docker Compose

Installation

git clone https://github.com/diozenio/orbit-backend.git
cd orbit-backend
yarn install

Create a .env file by copying the example:

cp .env.example .env

Or manually create a .env file with the following content:

PORT=8080
NODE_ENV=development
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres

Running the Database

Start the database with Docker:

docker compose up -d

Running Migrations

Apply Prisma migrations to your database:

yarn migrate

To open Prisma Studio:

yarn prisma

Running the App

Run the development server:

yarn dev

Folder Structure

orbit-backend/
├── .vscode/ → VSCode workspace settings
├── prisma/ → Prisma schema and migrations
└── src/
  ├── http/ → HTTP layer (routes, controllers, etc.)
  ├── lib/ → Shared libraries and utilities
  └── modules/ → Feature-based modules (e.g. expenses, transactions, categories)
    ├── / → Domain module
    │  └── / → Actions like Create, Update, Delete, Get
    └── ...

Technologies Used

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT (LICENSE)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published