This is the backend for the Node MV JSON Generator application. It provides endpoints for generating and retrieving data in JSON format.
- Node.js (version 16.X.X or higher)
- npm (version 8.X.X or higher)
- Git
To clone the repository, run the following command:
git clone https://github.com/supreethavadhani/node-mv-json-generator-backend.git
To run the server
node index.js
To use the OpenAI API, you will need an API key. If you already have an API key, you can skip this step. Otherwise, follow these steps to create an API key:
- Sign up for an account on the OpenAI website.
- Go to the API keys page.
- Click the "Create New API Key" button.
- Give your API key a name and click the "Create" button.
- Copy the API key to a secure location.
To use the OpenAI API key in the Node.js application, you will need to set it as an environment variable.
On Unix-based systems (e.g. Linux, macOS), you can set the environment variable by running the following command in your terminal:
export OPENAI_API_KEY=YOUR_API_KEY_HERE
On Windows Systems ( you can set the environment variable by running the following command in your terminal:
set OPENAI_API_KEY=YOUR_API_KEY_HERE