{"id":22266012,"url":"https://github.com/muhdhanish/expense_tracker","last_synced_at":"2026-04-07T18:33:21.148Z","repository":{"id":241358077,"uuid":"806440449","full_name":"MuhdHanish/expense_tracker","owner":"MuhdHanish","description":"The Expense Tracker is an application designed to streamline the recording and management of expenses.","archived":false,"fork":false,"pushed_at":"2024-08-08T09:37:48.000Z","size":705,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T14:21:44.930Z","etag":null,"topics":["bun","drizzle-orm","hono","kinde-auth","neon-postgres","postgresql","reatctjs","shadcn-ui","sonner","tailwindcss","tanstack-form","tanstack-query","tanstack-router","trpc","trpc-client","trpc-server","typescript","vite","vite-proxy","zod-validation"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MuhdHanish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-27T07:51:28.000Z","updated_at":"2024-08-25T15:31:15.000Z","dependencies_parsed_at":"2024-08-08T11:45:48.514Z","dependency_job_id":"799342f6-c311-4327-9bb1-eaeedef0b36a","html_url":"https://github.com/MuhdHanish/expense_tracker","commit_stats":null,"previous_names":["muhdhanish/expense_tracker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MuhdHanish/expense_tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhdHanish%2Fexpense_tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhdHanish%2Fexpense_tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhdHanish%2Fexpense_tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhdHanish%2Fexpense_tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MuhdHanish","download_url":"https://codeload.github.com/MuhdHanish/expense_tracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MuhdHanish%2Fexpense_tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31524525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","drizzle-orm","hono","kinde-auth","neon-postgres","postgresql","reatctjs","shadcn-ui","sonner","tailwindcss","tanstack-form","tanstack-query","tanstack-router","trpc","trpc-client","trpc-server","typescript","vite","vite-proxy","zod-validation"],"created_at":"2024-12-03T10:17:27.733Z","updated_at":"2026-04-07T18:33:21.092Z","avatar_url":"https://github.com/MuhdHanish.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expense Tracker\n\nA simple expense tracking application with a robust tech stack, designed to provide a seamless and efficient way to manage personal finances. This application combines modern frontend and backend technologies to offer a smooth user experience with features like secure authentication and expense tracking.\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Features](#features)\n- [Tech Stack](#tech-stack)\n  - [Frontend](#frontend)\n  - [Backend](#backend)\n- [Setup](#setup)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n  - [Running the Application](#running-the-application)\n- [Routes](#routes)\n  - [Frontend Routes](#frontend-routes)\n  - [Backend Routes](#backend-routes)\n- [Environment Variables](#environment-variables)\n- [Feedback](#feedback)\n- [Contributing](#contributing)\n- [Support](#support)\n\n## Overview\n\nThe Expense Tracker is a small yet powerful application designed to help users keep track of their expenses effortlessly. Leveraging a comprehensive tech stack, this project demonstrates the integration of modern web technologies to provide a seamless and responsive user experience. Users can easily log their expenses and keep track of their spending through a clean and intuitive interface.\n\nThis project is divided into two main parts:\n- **Frontend**: Built with React and styled with TailwindCSS, the frontend offers a dynamic and responsive user interface.\n- **Backend**: Powered by Bun and TypeScript, the backend uses Hono and tRPC for routing and API handling, with PostgreSQL as the database hosted externally on Neon.\n\n**Note:** This is not a product, but a simple project aimed at learning and demonstrating the use of a comprehensive tech stack.\n\n## Features\n\n- **Authentication**: Secure login and registration using Kinde.\n- **Expense Management**: Add, view, and delete expenses with ease.\n- **Profile Management**: View and manage user profile details.\n- **Data Handling**: Robust backend with Drizzle ORM and PostgreSQL.\n- **Form Validation**: Client-side validation with Zod for a smoother user experience.\n\n## Tech Stack\n\n### Frontend\n\n- **Bun**\n- **Vite**\n- **React**\n- **Typescript**\n- **TailwindCSS**\n- **Shadcn-ui**\n- **Tanstack Router**\n- **Tanstack Query**\n- **Tanstack Form**\n- **Sonner**\n- **Form Validation with Zod**\n\n### Backend\n\n- **Bun**\n- **Typescript**\n- **Hono**\n- **tRPC**\n- **Drizzle ORM**\n- **PostgreSQL** (Hosted on Neon)\n- **Authentication using Kinde**\n- **Validation in requests with Zod**\n- **Schema validation with Zod**\n\n## Setup\n\n### Prerequisites\n\n- Bun\n\n### Installation\n\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/MuhdHanish/expense_tracker.git\n   cd expense_tracker\n   ```\n\n2. Install dependencies:\n   ```sh\n   bun install\n   ```\n\n3. Set up the environment variables:\n   ```sh\n   cp .env.example .env\n   ```\n   Fill in the required environment variables in the `.env` file.\n\n## Running the Application\n\n### Script Commands\n\n- **db-studio**: This command opens the database studio for managing the database. It uses `bunx drizzle-kit studio` to launch the database studio provided by Drizzle.\n\n- **migrate**: This command generates migrations using `bun drizzle-kit generate` and then applies those migrations to the database using `bun migrate.ts`. It's used for managing database schema changes and data migrations.\n\n- **start:server**: This command starts the backend server. It runs the entry file `server/index.ts` using `bun`.\n\n- **dev:server**: This command starts the backend server in development mode with watch mode enabled. It monitors changes to files in the `server` directory and restarts the server automatically when changes are detected.\n\n- **dev:client**: This command starts the frontend development server. It changes directory to the `client` directory and then runs `bun run dev` to start the frontend server.\n\n- **build:client**: This command builds the frontend for production. It changes directory to the `client` directory and then runs `bun run build` to generate production-ready assets.\n\n- **dev**: This command runs both the backend and frontend servers concurrently in development mode. It uses `concurrently` to execute multiple commands simultaneously. Specifically, it starts the backend server in development mode and then builds and starts the frontend server.\n\n## Routes\n\n### Frontend Routes\n\n- **/**: Home page showing the total expense of the current user.\n- **/expenses**: Expense list table with pagination.\n- **/create-expense**: Page to create a new expense with form validation.\n- **/profile**: Profile page showing the user's profile picture, name, and logout button.\n\n### Backend Routes\n\nAll backend routes are prefixed with `/api`.\n\n#### Authentication Routes (`/api/auth`)\n\n- **/profile**: Get user profile details.\n- **/login**: User login.\n- **/register**: User registration.\n- **/logout**: User logout.\n\n#### Expense Routes (`/api/expenses`)\n\n- **/** (GET): Get all expenses.\n- **/** (POST): Create a new expense.\n- **/:id** (GET): Get an expense by ID.\n- **/:id** (DELETE): Delete an expense by ID.\n- **/total-spent** (GET): Get the total spent by the user.\n\n## Environment Variables\n\nEnsure all necessary variables are provided for the application to run correctly. The required variables can be found and set in the `.env.example` file. Copy this file to `.env` and fill in the appropriate values.\n\n## Feedback\n\nIf you have any feedback, please reach me at [muhammedhanish11@gmail.com](mailto:muhammedhanish11@gmail.com) or connect with me on [LinkedIn](https://www.linkedin.com/in/muhdhanish/).\n\n## Contributing\n\nContributions are welcome! Please fork the repository and create a pull request with your changes. Make sure to follow the project's coding standards and include relevant tests.\n\n## Support\n\nShow your support by 🌟 the project!!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhdhanish%2Fexpense_tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhdhanish%2Fexpense_tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhdhanish%2Fexpense_tracker/lists"}