This Expense Tracking API allows users to manage their expenses by creating, retrieving, updating, and deleting expense records. Built with Express and MongoDB, it offers a RESTful interface for easy expense management.
- Create new expense records
- Retrieve all expenses
- Retrieve a single expense by ID
- Update existing expenses by ID
- Delete expenses by ID
- Node.js
- npm or yarn
- MongoDB
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
Navigate to the project directory:
- Install dependencies:
npm install
- POST
/expenses
- Body:
{ "description": "Groceries", "amount": 100, "date": "2021-07-01", "category": "Food" }
- GET
/expenses
- GET
/expenses/:id
- PUT
/expenses/:id
- Body:
{
"description": "Utilities",
"amount": 150,
"date": "2021-07-15",
"category": "Bills"
}
- DELETE
/expenses/:id
- Contributions to improve the Expense Tracking API are welcome. Please follow these steps to contribute:
- Fork the repository
- Create your feature branch (git checkout -b feature/AmazingFeature)
- Commit your changes (git commit -am 'Add some AmazingFeature')
- Push to the branch (git push origin feature/AmazingFeature)
- Open a pull request