Skip to content

fjorwb/Personal-Budget

Repository files navigation

Personal-Budget

The Personal Budget A web application to manage your budget.

Table of contents

  • Description
  • Project objectives
  • Technology
  • Launch
  • How to use
  • Source

Description

This project satisfy all the requirements of the Portfolio - Personal Budget I of the Back-End Engineiring path. This was built with node and express, using global.variables to store and retrieve data.

Project Objectives

  • Build an API using Node.js and Express
  • Be able to create, read, update, and delete envelopes
  • Be able to create, read, update, delete and make transaction between envelopes.
  • Add funtionality to CRUD expenses and produce a Balance.
  • Use Git version control to keep track of your work
  • Use Postman to test API endpoints
  • Document the project using JSDoc and Swagger.

Technology

Project is created with:

  • ES6 Javascript
  • Node.js
  • Express.js
  • HTML
  • CSS
  • Swagger

Launch

Download the files and extract them in a folder. To run the server, node must be installed. Run 'npm install to install', then 'npm start'.

Once it is intalled run the app locally, API could be accessed at http://localhost:3000/

Testing with Swagger

Swagger documentation and testing available at http://localhost:3000/api/docs

Envelopes:

  • get all envelopes: GET /env
  • createEnvelope: POST /env
  • updateEnvelope: PUT /env/:name (envelope name)
  • deleteEnvelope: DELETE /env/:name (envelope name)
  • Transfer an amount from a specific envelope to another one using POST /transfer?from=:id&to=:id&amount=:amount

Expenses:

  • get all expenses: GET /exp
  • createExpense: POST /exp
  • updateExpense: PUT /exp/:id
  • deleteExpense: DELETE /exp/:id

Balance

  • set Budget: POST /budget
  • getBalance: GET /budget

How to use

Using Swaager at http://localhost:3000/api/docs you could try all the endpoints to perform CRUD operations.

Source

This project was part of the portfolio challenge from the Codecademy's Back-End path.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published