ChitIt

A simple web app to maintain Chits as both Foreman and Member

Problem Statement

My cousin runs chit fund as a side hustle, he manages everything on whatsapp and writes all the accounts every month and the auction day feels like hell to him also he doesn't have a track of how much i got in UPI and how much I got in cash, this was his major problem and I decided to solve it and thats how this happened

Project Video

Techstack

Nestjs
NextsJs
Prisma Postgres
AWS Lambda
AWS API Gateway
Vercel
Google Stich
OpenCode
MCP

Frontend

NextJs
OpenCode
Google Stich
MCP
  • Designed the initails screens and set the design.md from Google Stich.
  • Decided to go with NextJs for its SEO friendly approach.
  • Used schadn for preset theme approach.
  • Went with Zustand for state and store management as I thought no complex state management needed here.
  • For hooks I have went with Tanstack query as I feel more comfortable with it now.
  • For notifications went with refresh the GET api for every 2 minutes rather than depending on Websocket where all the cases of action are covered with tanstack uey itself.
  • Used "react-i18next" for language translation, as I feel this will be the most intensive feature of this app.
  • Used OpenCode with "Big Pickel" free tier model to achieve the efficient programming.
  • Connected Google Stich with opencode MCP to generate screens and component in more efficient and accurate way.
  • As of now no infra cost for UI deployment since going with free tier on vercel.

Backend

NextJs
Prisma Postgres
Docker
AWS Lambda
Whatsapp
  • Decided to go with same NestJs and AWS Lambda with Docker
  • Used own auth logics rather than depending on third party providers.
  • Added Sign In / Up with google option but depreciated on behalf of requirement constraint but it was fun doing it for first.
  • This time I integrated Whatsapp messaging here for OTP authentication and payment reminders.
  • Used Prisma Postgres instead of SupaBase postgres.
  • Tried to to deploy it on Prisma Compute but wasted a couple of days, so went with traditional DOCKER -> AWS Lambda

Infra

S3
Vercel
AWS Lambda
Jenkins
Docker
AWS ECR
API Gateway
  • For UI went with Vercel so need of any seperate CICD
  • For backend went with Jenkins for CICD
  • Backend flow goes like Git -> Docker -> AWS ECR -> AWS Lambda -> AWS API Gateway.
  • For Database backup i have github action that runs everyday on 11 am and pm that stores the backpu on my S3 bucket.
  • Total infra costs - UI : 0$, Backend : >2$