- 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.
Before you begin, ensure you have met the following requirements:
- Node.js installed on your local machine.
-
Clone this repository:
git clone https://github.com/darrylmorley/lightspeedToXML.git
- Navigate & Install dependencies:
cd lightspeedToXML
npm install
- 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
Run the script:
npm run start
- Lightspeed API: Documentation for the Lightspeed API.
- slugify: Used for generating slugs from product descriptions.
- xml: Used for creating XML documents.
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.