- Python 3.11+
- Docker & Docker Compose
- Node.js 18+
Make sure you’re using Python 3.11 or later (required for LangGraph compatibility).
Run:
python3 --version
$ python3 -m venv code-gen-env
$ source code-gen-env/bin/activate
$ pip install -r requirements.txt
PS> python3 -m venv code-gen-env
PS> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
PS> code-gen-env\scripts\activate
PS> pip install -r requirements.txt
Create a .env
file in the backend root and add:
OPENAI_API_KEY="your_api_key_here"
python run.py
From the project root:
cd frontend
npm install
npm run dev
The app will now be live at:
👉 http://localhost:3000
Once the app is running:
-
Generate OpenAPI Spec
- The app will first ask you to generate an OpenAPI specification.
-
Validate the Spec (optional)
- You may be prompted to validate the generated spec.
-
Save the Spec
- Save the file and confirm it exists in the root directory with the name:
openapi.json
- Save the file and confirm it exists in the root directory with the name:
-
Generate Server Code
- Click Generate Server Code.
- Confirm that a new directory called:
has been created.
server_code
-
Test the Generated Server
- You can now test the generated server with actions like:
- Running Docker Compose
- Viewing logs
- Making API requests
- Updating code
- You can now test the generated server with actions like:
- Ensure you have Node.js 18+ installed for the frontend.
- If you face issues activating the Python environment on Windows, try:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
- If
npm install
fails due to permissions, run:npm install --legacy-peer-deps