Skip to content

RealDevExpert/BudgetApp-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BudgetApp

The BudgetApp is basically a back-end (in Node.js) & front-end (in React) Application for Budget Management, in which We've added the Login, Logout and Authentication modules in addition back-end requests for Create, Update, View, Delete Incomes and Expenses and users can get total Income & Expenses.

Table of Contents

  1. Authors and Contributors
  2. How to deploy the app?
  3. Resources Used
  4. Goals

1. Authors and Contributors

I, Devashish Patel and Abhishek Ghosh are the developers for this Application.

2. How to check the app ?

Follow the steps below to check back-end API :

Request Routes:

Create User

  • Type: POST
  • Endpoint: URL/budget/users/signup
  • Body: { "email": "[email protected]", "password": "xyz" } (Minimum password length is 5)

User Login

  • Type: POST
  • Endpoint: URL/budget/users/login
  • Body: { "email": "[email protected]", "password": "xyz" }
  • Response Header: Copy value of key auth which will be used for authentication and set this value in environment with the key Authorization and set that key in header of all other requests from now.

New Entry

  • Type: POST
  • Endpoint: URL/budget/add
  • Request Body: { "type": "Income", "description": "First Income", "amount": 400 }
  • Request Header: Authorization: JWT token value(From Response Header find 'auth')

Fetch All Data

  • Type: GET
  • Endpoint: URL/budget/all
  • (Set Request Header)

Fetch Individual Income

  • Type: GET
  • Endpoint: URL/budget/income/:id (e.g: id -> 5969902e3989c2063b925d4a)
  • (Set Request Header)

Fetch Individual Expense

  • Type: GET
  • Endpoint: URL/budget/expense/:id (e.g: id -> 5969902e3989c2063b925d4a)
  • (Set Request Header)

Update Individual Income

  • Type: PUT
  • Endpoint: URL/budget/income/:id (e.g: id -> 5969902e3989c2063b925d4a)
  • (Set Request Header)

Update Individual Expense

  • Type: PUT
  • Endpoint: URL/budget/expense/:id (e.g: id -> 5969902e3989c2063b925d4a)
  • (Set Request Header)

Delete Individual Income

  • Type: DELETE
  • Endpoint: URL/budget/income/:id (e.g: id -> 5969902e3989c2063b925d4a)
  • (Set Request Header)

Delete Individual Expense

  • Type: DELETE
  • Endpoint: URL/budget/expense/:id (e.g: id -> 5969902e3989c2063b925d4a)
  • (Set Request Header)

USER LOGOUT

  • Type: DELETE
  • Endpoint: URL/budget/users/logout
  • (Set Request Header) `

3. Resources

  • Node.js is used as the scripting language for the server.
  • npm modules used in the API.
  • express, crypto-js, bcryptjs, underscore, body-parser,JWT,mongoose
  • Database : MongoDB

4. Goals

  • Create a back-end API with Node.js
  • Use MongoDB as a No Sql Database
  • Give a attaractive front-end look with React
  • Develop a mobile app using React native

Any suggestions for the API are welcomed. Please email me at [email protected] to share your suggestions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published