A web application built with MERN stack for managing expenses.
This application covers the following functionalities :
- Login and logout of application using token Authentication.
- User can create, read or delete and Expense.
- User can filter expenses.
- Upload images of bills.
/user routes
-
GET - http://localhost:3000/user - Fetch all users
-
POST - http://localhost:3000/user - Create a new user
-
DELETE - http://localhost:3000/user - Delete all users
-
GET - http://localhost:3000/user/:id - Get specific user by id
-
PUT - http://localhost:3000/user/:id - Update specific user by id
-
DELETE - http://localhost:3000/user/:id - Delete specific user
/expense routes
-
GET - http://localhost:3000/expense - Fetch all expenses
-
POST - http://localhost:3000/expense - Create a new expense
-
DELETE - http://localhost:3000/expense - Delete all expenses
-
GET - http://localhost:3000/expense/:id - Get specific expense by id
-
PUT - http://localhost:3000/expense/:id - Update specific expense by id
-
DELETE - http://localhost:3000/expense/:id - Delete specific expense
/report routes
-
GET - http://localhost:3000/report - Fetch all reports
-
POST - http://localhost:3000/report - Create a new report
-
DELETE - http://localhost:3000/report - Delete all reports
-
GET - http://localhost:3000/report/:id - Get specific report by id
-
PUT - http://localhost:3000/report/:id - Update specific report by id
-
DELETE - http://localhost:3000/report/:id - Delete specific report
miscellaneous routes:
-
GET - http://localhost:3000/search - Get expense based on filters
-
PUT - http://localhost:3000/mark-as-delete - Update expense as deleted
-
GET - http://localhost:3000/grouped-user-data - Fetch grouped user data
-
GET - http://localhost:3000//dashboard-data - Fetch dashboard
- Run command npm i on server and UI folders.
- run tsc command to compile Typescript files on server.