This is a NodeJS/Express API to create and manage a personal budget. This API uses envelope budgeting principles to manage budget envelopes and was built as part of a portfolio project on the CodeCademy Back-End Engineer Career Path. A user can find, create, update, transfer amounts between, and delete envelopes.
Run this in your terminal: git clone https://github.com/qtdceu/Personal-budget-API/
to download the repository on your local machine.
To run locally, run node .
in your terminal.
The base URL for all requests is: http://localhost:3000/
.
Get all envelopes:
GET /
Get an envelope by ID:
GET /{id}
Create a new envelope:
POST /
Example body:
{
"title": "Commuting",
"amount": 200
}
Transfer amounts between envelopes:
POST /transfer/{fromId}/{toId}
Example body:
{
"amount": 200
}
Update part/all of an envelope by ID:
POST /update/{id}
Example body:
{
"title": "Commuting",
"amount": 200
}
Delete an envelope by ID:
DELETE /{id}