A Node.js and Express application to manage your personal budget via the use of Envelope Budgeting method.
This is a personal implementation of the Personal Budget portfolio project set by Codeacademy. It provides API that allow users to manage budget envelopes and track the balance of each envelope.
- Javascript
- Node.js
- Express.js
- VS Code
First, clone the repository to your local machine. Then open the root project directory in your terminal and run npm install
to install the dependencies of this project. Lastly, simply start your server with the node server.js
command. You'll see Server listening on port 3001
in the terminal. You can kill either process with the Ctrl + C
command.
/envelopes
- GET
/envelopes
to get array of envelopes - POST
/envelopes
to create a new instance of envelopes - PUT
/envelopes
to update an existing envelope - GET
/envelopes/:envelopeId
to a single envelope instance based on the envelopeid
. - DELETE
/envelopes/:envelopeId
to delete a single envelope by id. - PUT
/envelopes/:fromId/:toId?amount=
to transfer a budget valueamount
from the envelopefromId
to envelopetoId
- GET
/budget
- GET
/budget
to get the total budget of all envelopes
- GET
Data representation of an envelope instance is based on JSON as shown below
{
"id": "1",
"category": "Groceries",
"cost": 150
}
- Create a frontend that displays envelopes and balances, and allows users to update each envelop balance
- Add an API endpoint allowing user to add a single balance that’s distributed to multiple envelopes
Created by Joshua S. Thomas