This is the backend server for the Budgeting App. It provides the API endpoints to manage transactions.
- Create, read, update, and delete transactions
- Store transactions in a database
- Node.js
- Express.js
- MongoDB (or your preferred database)
- Mongoose (ODM for MongoDB)
- Node.js installed on your machine
-
Clone the repository:
git clone https://github.com/your-username/budgeting-app-backend.git
Navigate to the project directory:
cd budgeting-app-backend
Install the dependencies:
npm install
Create a .env file in the root directory and add the following environment variables:
PORT=3001
Start the server:
npm start
The server will run on http://localhost:3001.
API Documentation Transactions GET /transactions: Get all transactions GET /transactions/:id: Get a specific transaction by ID POST /transactions: Create a new transaction PUT /transactions/:id: Update a specific transaction by ID DELETE /transactions/:id: Delete a specific transaction by ID Refer to the API documentation for detailed information on request and response formats.
Contributing Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.