Read prompts from Excel sheet and save the answers from the OpenAI into the sheet.
- Node.js for Backend
- React for Frontend
- Exceljs for handling Excel sheets
- Concurrently for run server and client at one command
- Node JS
- OpenAI API Key
- IDE: Visual Studio Code
- Install global dependencies
npm install
- Install client dependencies
cd client
npm install
- Install server dependencies
cd server
npm install
- Replace [OPENAI_API_KEY] in 'server/.env' file with your OpenAI API key.
- Start the server and client
npm run dev
- Start the client alone
cd client
npm start
- Start the server alone
cd server
npm run server
- Run Task
Route: '/run/task'
Request payload: {
doc: string (Path and name of Excel file),
sheet: string (Name of sheet),
type: string (One of ['Build', 'Fixed', 'If, Then'])
}
Response: Status: 200, { res: 'Finished' }
- Run Project
Route: '/run/project'
Request payload: {
doc: string (Path and name of Excel file),
tasks: array (Array of tasks)
}
Task: {
name: string (Name of task, not used),
sheet: string (Name of sheet),
type: string (Type of task, one of ['Build', 'Fixed', 'If, Then'])
}
Response: Status: 200, { res: 'Finished' }