![dashboard_mockup](https://private-user-images.githubusercontent.com/24507211/310652769-2c2b8e43-3d18-4b28-b8d0-5dc0cbdb530f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3MDQ4NjUsIm5iZiI6MTcyMzcwNDU2NSwicGF0aCI6Ii8yNDUwNzIxMS8zMTA2NTI3NjktMmMyYjhlNDMtM2QxOC00YjI4LWI4ZDAtNWRjMGNiZGI1MzBmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE1VDA2NDkyNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI5NGY5N2VjZTBmNWRmYTAwNDVjNGE0YTRhYjRhMDViYWViNzc4ZmM5ZTliYzBjYmViMzQwMWJiYWQxOTU4OGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.veKp6iZ9nmaPv0X9rApLsiF-mV2vxTR-Unny9vIeCqw)
Empower your financial management with Badget - AI-driven insights at your fingertips. Optimize your finances effortlessly.
Introduction · Installation · Tech Stack + Features · Credits
Welcome to Badget, where we're ushering in a new era of financial management. Leveraging cutting-edge AI, Badget redefines how you track, analyze, and optimize your finances, ensuring smarter, more secure financial decisions.
With Badget, gain unparalleled insights into your spending habits and financial patterns, empowering you to budget better and experience more. Trusted by the world's most innovative companies, Badget is here to revolutionize your financial management experience.
Lets goooo - Next.js 14, Turborepo, Drizzle ORM, Planetscale, Clerk, Resend, React Email, Shadcn/ui, and Stripe.
All seamlessly integrated with the Badget to accelerate the development.
Badget is a monorepo managed by Turborepo. The monorepo is split between apps
and packages
directories.
.
├── apps # Its app workspace which contains
│ ├── www # Nextjs app which is deployed in Vercel
│ └── ...
├── packages # are the shared packages that are used by the apps (e.g. `@badget/api`)
├── plugins # are the connectors that are used to connect to open-finance data (e.g. `@badget/connector-plaid`)
├── tooling # are the shared configuration that are used by the apps and packages (e.g. `@badget/eslint-config`)
├── docker-compose.yml
├── LICENSE
└── README.md
Use short lowercase names at least for the top-level files and folders except
LICENSE
,README.md
Clone & create this repo locally with the following command:
git clone https://github.com/projectx-codehagen/Badget
- Install dependencies using pnpm:
pnpm install
- Copy
.env.example
to.env.local
and update the variables.
cp .env.example .env.local
-
Input everything you need for the env.
- Create Clerk Account
- Create Neon Account
- Create Stripe Account and download Stripe CLI
-
Start the development server from either yarn or turbo:
# At the root of the mono repo
pnpm run dev:web
To set up Stripe locally with environment variables:
- Create a Stripe account.
- After signing in, go to the dashboard and switch to Test mode.
- In the dashboard, switch to the API keys section.
- Reveal your secret key and paste it into your
.env.local
file. - For the webhook key, switch to the Webhooks tab, add an endpoint to reveal the secret key.
- To get the
PRODUCT_ID
andPRICE_ID
, head over to Stripe's API Docs. - From the docs, use the API with your
STRIPE_API_KEY
to create a product & price object. - The response object from the API contains two keys:
id
andproduct
. - Use the
id
as yourPRICE_ID
andproduct
as yourPRODUCT_ID
. - You can use the same keys for the STD and PRO variables.
This project uses Postgres database on Neon. To setup a DB for your local dev:
Create a free account and a new Database
-
Initial setup - Start removing template
- Update UI to match the product
- Start stichting frontend with backend
- Next.js – React framework for building performant apps with the best developer experience
- Clerk – Handle user authentication with ease with providers like Google, Twitter, GitHub, etc.
- Drizzle ORM – TypeScript ORM that feels like SPA with SSR
- React Email – Versatile email framework for efficient and flexible email development
- Vercel – Easily preview & deploy changes with git
- PlanetScale – A cutting-edge database platform for seamless, scalable data management
- Resend – A powerful email framework for streamlined email development
- Stripe - Payments
- Tailwind CSS – Utility-first CSS framework for rapid UI development
- Shadcn/ui – Re-usable components built using Radix UI and Tailwind CSS
- Framer Motion – Motion library for React to animate components with ease
- Lucide – Beautifully simple, pixel-perfect icons
next/font
– Optimize custom fonts and remove external network requests for improved performanceImageResponse
– Generate dynamic Open Graph images at the edge
We love our contributors! Here's how you can contribute:
- Open an issue if you believe you've encountered a bug.
- Make a pull request to add new features/make quality-of-life improvements/fix bugs.