Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lovejotsaini/billingapp-back-end-data
its a complete backend data of billing app using Nodejs and MongoDb
https://github.com/lovejotsaini/billingapp-back-end-data
Last synced: 1 day ago
JSON representation
its a complete backend data of billing app using Nodejs and MongoDb
- Host: GitHub
- URL: https://github.com/lovejotsaini/billingapp-back-end-data
- Owner: Lovejotsaini
- Created: 2021-10-11T19:02:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-11T19:03:17.000Z (about 3 years ago)
- Last Synced: 2023-10-17T15:29:10.702Z (about 1 year ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Billing App
In this repo, the backend for a billing application has been setup. This is done to help the students who are learning front end development either React / Angular / Vue to build an application to test out their skills.The modules are as follows
1. User
2. Customer
3. Product
4. Bill## API's **base url - http://dct-billing-app.herokuapp.com/api**
### User Resource
| # | action | method | url | request | response | auth (headers) |
| ---- |-----|-------|--------|---------|------| ------|
| 1. | register a user | POST | /users/register |
- username*
- email*
- password*
- businessName
- address
- _id
- username
- password
- businessName
- address
- createdAt
- updatedAt
| 2. | login a user | POST | /users/login |
- email*
- password*
- token
| 3. | get user information | GET | /users/account | - |
- _id
- username
- password
- businessName
- address
- createdAt
- updatedAt
**note - * indicates a required field**
---
### Customer Resource
| # | action | method | url | request | response | auth (headers) |
| ----- |-----|-------|--------|---------|------| ------|
| 1. | lists all customers | GET | /customers | - | empty array or array of objects
| `{ Authorization : 'Bearer token'}` |
| 2. | create a customer | POST | /customers |
- name*
- mobile*
- _id
- name
- mobile
- user
- createdAt
- updatedAt
| 3. | get a customer | GET | /customers/:id | - |
- _id
- name
- mobile
- user
- createdAt
- updatedAt
| 4. | update a customer | PUT | /customers/:id |
- name*
- mobile*
- _id
- name
- mobile
- user
- createdAt
- updatedAt
| 5. | delete a customer | DELETE | /customers/:id | - |
- _id
- name
- mobile
- user
- createdAt
- updatedAt
**note - * indicates a required field**
---
### Product Resource
| # | action | method | url | request | response | auth (headers) |
| ---- |-----|-------|--------|---------|------| ------|
| 1. | lists all products | GET | /products | - | empty array or array of objects | { Authorization : 'Bearer token'} |
| 2. | create a product | POST | /products |
- name*
- price*
- _id
- name
- price
- user
- createdAt
- updatedAt
| 3. | get a product | GET | /products/:id | - |
- _id
- name
- price
- user
- createdAt
- updatedAt
| 4. | update a product | PUT | /products/:id |
- name*
- price*
- _id
- name
- price
- user
- createdAt
- updatedAt
| 5. | delete a product | DELETE | /products/:id | - |
- _id
- name
- price
- user
- createdAt
- updatedAt
**note - * indicates a required field**
---
### Bill Resource
| # | action | method | url | request | response | auth (headers) |
| ---- |-----|-------|--------|---------|------| ------|
| 1. | List all bills | GET | /bills | - | empty array or array of objects | { Authorization : 'Bearer token'} |
| 2. | create a bill | POST | /bills |
- date*
- customer*
- lineItems*
- product*
- quantity
- _id
- date
- customer
- lineItems
- _id
- product
- price
- quantity
- subTotal
- user
- createdAt
- updatedAt
- total
| 3. | get a bill | GET | /bills/:id | - |
- _id
- date
- customer
- lineItems
- _id
- product
- price
- quantity
- subTotal
- user
- createdAt
- updatedAt
- total
| 4. | delete a bill | DELETE | /bills/:id | - |
- _id
- date
- customer
- lineItems
- _id
- product
- price
- quantity
- subTotal
- user
- createdAt
- updatedAt
- total
**note - * indicates a required field**