This project allows you to generate and run a React app based on prompts processed through GPT-4. The backend is handled with a Streamlit app in Python, and the frontend is a React application.
- Python 3.x
- Node.js and npm
-
Clone the Repository:
can clone it using: git clone https://github.com/vishk23/react-java.git REACT-POC
-
Navigate to the Project Directory: cd REACT-POC
-
Install Python Dependencies: pip install -r requirements.txt
-
Install JavaScript Dependencies:
Navigate to the chatgpt-react-generator
directory and install the necessary packages.
cd chatgpt-react-generator
npm install
- Running the Project:
Run the Streamlit app: cd .. streamlit run generator.py
The Streamlit app will handle the starting of the React app as well.
- Open the Streamlit app in your browser (usually at
http://localhost:8501
). - Enter a description for your desired React app.
- Click "Generate and Run React App" to generate the React code and view the result of the React app in another browser tab (usually at
http://localhost:3000
)