Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darrylmorley/lightspeedtoxml
Extract your Lightspeed Retail product data to XML for feeding into other systems, e.g. Google Merchant Centre
https://github.com/darrylmorley/lightspeedtoxml
google-merchant-center lightspeed-retail
Last synced: about 2 months ago
JSON representation
Extract your Lightspeed Retail product data to XML for feeding into other systems, e.g. Google Merchant Centre
- Host: GitHub
- URL: https://github.com/darrylmorley/lightspeedtoxml
- Owner: darrylmorley
- Created: 2023-05-25T10:21:43.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-24T07:13:40.000Z (about 1 year ago)
- Last Synced: 2023-10-24T20:30:19.776Z (about 1 year ago)
- Topics: google-merchant-center, lightspeed-retail
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lightspeedToXML
- lightspeedToXML is a simple Node.js script that retrieves product data from your Lightspeed account and creates an XML file from the results.
- The generated XML file can be used for various purposes, such as feeding product information to other systems or platforms.---
## Prerequisites
Before you begin, ensure you have met the following requirements:
- Node.js installed on your local machine.
---
## Installation
1. Clone this repository:
```bash
git clone https://github.com/darrylmorley/lightspeedToXML.git
```---
2. Navigate & Install dependencies:
```bash
cd lightspeedToXML
npm install
```---
3. Create a .env file in the project root directory and set the following environment variables with your Lightspeed API credentials:
```
LIGHTSPEED_ACCOUNT_ID=your_account_id
LIGHTSPEED_CLIENT_ID=your_client_id
LIGHTSPEED_CLIENT_SECRET=your_client_secret
LIGHTSPEED_REFRESH_TOKEN=your_refresh_token
```---
## Usage
Run the script:
```
npm run start
```---
## Acknowledgments
- [Lightspeed API](https://developers.lightspeedhq.com/ecom/introduction/introduction/): Documentation for the Lightspeed API.
- [slugify](https://www.npmjs.com/package/slugify): Used for generating slugs from product descriptions.
- [xml](https://www.npmjs.com/package/xml): Used for creating XML documents.---
## Contributing
Contributions are welcome! Feel free to open issues or pull requests to improve this project.
Version History
0.1.0 (23/10/23): Initial release.