https://github.com/pragatisharma21/finance-app
https://github.com/pragatisharma21/finance-app
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pragatisharma21/finance-app
- Owner: pragatisharma21
- Created: 2024-12-14T21:18:06.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-01-31T11:54:14.000Z (5 months ago)
- Last Synced: 2025-01-31T12:32:27.192Z (5 months ago)
- Language: JavaScript
- Homepage: https://finance-app-three-ashen.vercel.app
- Size: 194 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Finance App
π Finance App Backendπ Overview
This is the backend for the Finance App, providing secure and scalable APIs for financial data management, user authentication, and transactions. Built using Node.js, Express.js, and MongoDB, this backend ensures efficient handling of user data and financial records.
πΉ Features
β User Authentication (Signup/Login with JWT)β Transaction Management (Create, Read, Update, Delete)β Expense Tracking (Categorization & Summaries)β Secure API Endpoints (Middleware for authorization)β RESTful API Architectureβ MongoDB for Data Storageβ Environment Configuration using .env
π οΈ Tech Stack
Backend: Node.js, Express.js
Database: MongoDB (Mongoose ORM)
Authentication: JWT (JSON Web Token)
Middleware: Express Middleware for security & validation
Hosting: Deployed on Vercel
π Folder Structure
finance-app-backend/
β-- src/
β β-- controllers/ # Business logic
β β-- models/ # Mongoose models
β β-- routes/ # API routes
β β-- middleware/ # Authentication & validation
β β-- config/ # Database & environment setup
β β-- index.js # Entry point
β-- .env # Environment variables
β-- package.json # Dependencies & scripts
β-- README.md # Project documentationπ§ Setup & Installation
1οΈβ£ Clone the Repository
git clone https://github.com/your-repo/finance-app-backend.git
cd finance-app-backend2οΈβ£ Install Dependencies
npm install
3οΈβ£ Set Up Environment Variables
Create a .env file in the root directory and add:
PORT=5000
MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret4οΈβ£ Start the Server
npm start
The backend will run on http://localhost:5000
π API Endpoints
πΉ Authentication
POST /api/auth/signup β User Registration
POST /api/auth/login β User Login (JWT Token)
πΉ Transactions
GET /api/transactions β Get All Transactions
POST /api/transactions β Add a Transaction
PUT /api/transactions/:id β Update Transaction
DELETE /api/transactions/:id β Delete Transaction
π Deployment
This backend is deployed on Vercel. You can access it at:π Finance App Backend
π License
This project is open-source and available for modification and distribution.
## Created By Pragatiπ©·
# Deployment Link
Vercel deployment: [Finance Manager App](https://finance-app-three-ashen.vercel.app/)