An open API service indexing awesome lists of open source software.

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

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




Created by © Ljuzifer



LinkedIn Badge