The Bill Buzz is designed to help people manage and track invoices and payments efficiently.
- User Authentication: Secure login and registration process.
- Invoice Management: Create, view, update, and delete invoices.
- Automated Reminders: Automatically send reminders for overdue payments. //TODO
- Immediate Payment Options: Invoices contain a link for immediate payment by clients. //TODO
- Node.js (v14 or later recommended)
- MongoDB
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/bill-buzz-api.git
cd bill-buzz-api
- Install dependencies:
npm install
- Set up environment variables:
Create a .env
file in the project root and define the following variables:
MONGO_URI=mongodb+srv://<your_mongodb_uri>
TOKEN_SECRET=<your_jwt_secret>
- Start the server:
npm start
The server will start running on http://localhost:3000
.
- Endpoint:
/users/register
- Method: POST
- Body:
{
"username": "yourUsername",
"email": "[email protected]",
"password": "yourPassword"
}
- Endpoint:
/users/login
- Method: POST
- Body:
{
"email": "[email protected]",
"password": "yourPassword"
}
- Endpoint:
/invoices
- Method: POST
- Headers: Authorization: Bearer
<your_token>
- Body:
{
"clientName": "Client Name",
"amount": 100,
"dueDate": "2023-12-31",
"status": "pending"
}
Contributions are welcome! Please open an issue or submit a pull request with any improvements or suggestions.
Distributed under the MIT License. See LICENSE
for more information.