Set Up Your Node.js Project (Optional)

Let's prepare a simple Node.js environment to run integration examples.

🛠️ Setup a Node.js project

To get started, make sure you have the latest version of Node.js installed on your machine.

Then, follow these steps to set up a minimal project and run API examples:

# 1. Create a new folder for your project
mkdir fluz-api && cd fluz-api

# 2. Initialize a new Node.js project
npm init -y

# 3. Install required dependencies
npm install graphql-request

# 4. Create a JavaScript file for your example
touch example.js

# 5. Run the example
node example.js

👍

You now have a basic project structure ready for API interaction code! We'll run examples using node example.js.