A modern expense tracking application built with Next.js, React, and TypeScript.
- User authentication with NextAuth
- Dashboard for expense overview
- Add, edit, and delete expenses
- Expense categorization
- Data visualization with charts
- Dark mode support
- Responsive design
- Next.js 14
- React 18
- TypeScript
- Tailwind CSS
- Chart.js
- Framer Motion
- MongoDB (via Mongoose)
- NextAuth for authentication
-
Clone the repository:
git clone https://github.com/your-username/expense-tracker-next.git cd expense-tracker-next -
Install dependencies:
npm install -
Set up environment variables: Create a
.env.localfile in the root directory and add the following variables:MONGODB_URI=your_mongodb_connection_string NEXTAUTH_SECRET=your_nextauth_secret NEXTAUTH_URL=http://localhost:3000 -
Run the development server:
npm run dev -
Open http://localhost:3000 with your browser to see the application.
src/components: React componentssrc/pages: Next.js pages and API routessrc/types: TypeScript type definitionssrc/utils: Utility functionssrc/context: React context providerssrc/styles: Global styles and Tailwind CSS configuration
npm run dev: Runs the app in development modenpm run build: Builds the app for productionnpm start: Runs the built app in production modenpm run lint: Lints the codebase
This project is ready to be deployed on Vercel. For other deployment options, refer to the Next.js deployment documentation.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the ISC License.