https://github.com/ljuzifer/invoices-xls-parsing
Backend route with NodeJS/Express which process the XLS file
https://github.com/ljuzifer/invoices-xls-parsing
Last synced: 2 months ago
JSON representation
Backend route with NodeJS/Express which process the XLS file
- Host: GitHub
- URL: https://github.com/ljuzifer/invoices-xls-parsing
- Owner: Ljuzifer
- Created: 2024-03-01T18:37:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T17:27:58.000Z (about 1 year ago)
- Last Synced: 2025-01-25T19:08:47.108Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Invoices-XLS-Parsing
Backend route with NodeJS/Express which process the XLS file, it have a single endpoint for file upload where user can pass the XLS file and parameter called “invoicingMonth” in a format YYYY-MM with the next validation and parsing.---
![]()
---
BASE URL: http://localhost:3000
Enter this URL + route (/upload) in Postman with "POST" request, add the file and the required parameter of month
---
Getting Started
To get started with the project, follow these steps:
1. Clone this repository to your local machine:
`git clone` [tap!](https://github.com/Ljuzifer/invoices-XLS-parsing.git)
2. Change directory to the project folder:
`cd invoices-XLS-parsing`
3. Install the project dependencies:
`npm install`
4. Start the development server:
`npm run dev`
5. Server will start on the `http://localhost:3000` to access the application.
---
### POST ####/upload - `upload user's xlsx-file`
### form-data:
- `file`: "invoicingFile"
- `text`: "invoicingMonth": YYYY-MM (date in correct format)### with response in format like:
```
{
InvoicingMonth: “YYYY-MM” - from the file,
currencyRates: {
USD:
EUR:
GBP:
},
invoicesData: [
.. all the invoices data, columns according to the file…
]
}
```Developer
![]()