A modern web application that helps generate and develop business ideas using Azure OpenAI services.
This application combines React, TypeScript, and Tailwind CSS for the frontend with a Node.js/Express backend, leveraging Azure OpenAI to generate innovative business ideas.
├── frontend/ # React TypeScript frontend application
│ ├── src/ # Source code
│ │ ├── components/ # React components
│ │ └── ... # Other frontend source files
│ └── package.json # Frontend dependencies
├── api-server/ # Node.js/Express backend
│ ├── src/ # Source code
│ │ ├── routes/ # API routes
│ │ └── server.ts # Server configuration
│ └── package.json # Backend dependencies
└── infra/ # Azure infrastructure as code
├── main.bicep # Main infrastructure definition
└── main.parameters.json # Infrastructure parameters
# Install frontend dependencies
cd frontend
npm install
# Install backend dependencies
cd ../api-server
npm install
# Frontend
REACT_APP_API_URL=http://localhost:3001
# Backend
AZURE_OPENAI_API_KEY=your-api-key
AZURE_OPENAI_API_ENDPOINT=your-endpoint
AZURE_OPENAI_API_MODEL=gpt-35-turbo
# Start frontend (in frontend directory)
npm start
# Start backend (in api-server directory)
npm run dev
The recommended way to deploy this application is using Visual Studio Code and the “Deploy to Web App” feature:
AZURE_OPENAI_ENDPOINT
= your Azure OpenAI endpointAZURE_OPENAI_KEY
= your Azure OpenAI keyAZURE_OPENAI_DEPLOYMENT
= your deployment name (e.g. gpt-4)PORT
= 3001 (or as needed).env
:
REACT_APP_API_URL=https://<your-backend-app-name>.azurewebsites.net/api
frontend/src/App.tsx
, replace any hardcoded API URLs with:
const apiUrl = process.env.REACT_APP_API_URL + '/api/generate';
Or use the environment variable directly.
For more details, see the Azure Tools for VS Code documentation.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.