forked from admineral/Reactor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
60,617 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
# React Live Code Editor with ChatGPT Integration | ||
|
||
This project is a React-based live code editor integrated with OpenAI's ChatGPT API. It provides an interactive and intuitive interface where users can edit and run their code while also getting suggestions and help from ChatGPT. Users can apply the code generated by ChatGPT with a single click, making it a powerful tool for developers to explore and experiment with their ideas. | ||
|
||
|
||
## Live Demo | ||
|
||
The live demo of the app | ||
|
||
## v_2 | ||
|
||
[https://reactor-git-new-design-admineral.vercel.app](https://reactor-phi.vercel.app). | ||
<img src="images/Reactor_v2.gif" alt="Reactor" width="800px"> | ||
|
||
v_1 | ||
[https://reactor-phi.vercel.app](https://reactor-phi.vercel.app). | ||
|
||
<img src="images/reactor_gif.gif" alt="Reactor" width="800px"> | ||
|
||
|
||
|
||
|
||
## Features | ||
|
||
- Live code editing using Ace Editor | ||
- React-Live for real-time rendering of React components | ||
- OpenAI's ChatGPT API integration for code suggestions | ||
- Interactive chat interface for seamless communication with ChatGPT | ||
|
||
|
||
## Deploying on Vercel | ||
|
||
To deploy this app on Vercel, follow these steps: | ||
|
||
1. Fork the repository from GitHub: [Reactor](https://github.com/admineral/Reactor.git) | ||
2. Sign up for a [Vercel account](https://vercel.com/signup) if you don't have one | ||
3. Connect your GitHub account with Vercel | ||
4. Import the forked repository as a new project on Vercel | ||
5. Add your `REACT_APP_API_KEY` as an environment variable in the Vercel project settings | ||
6. Deploy your project | ||
|
||
|
||
|
||
|
||
## Running the app locally | ||
|
||
To run this app locally, follow these steps: | ||
|
||
1. Clone the repository: | ||
|
||
``` | ||
git clone https://github.com/admineral/Reactor.git | ||
``` | ||
|
||
2. Navigate to the project directory: | ||
|
||
``` | ||
cd Reactor | ||
``` | ||
|
||
3. Install the dependencies: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
4. Create a `.env` file in the root of the project directory and add your OpenAI API key: | ||
|
||
``` | ||
REACT_APP_API_KEY=your-api-key | ||
``` | ||
|
||
5. Start the development server: | ||
|
||
``` | ||
npm start | ||
``` | ||
|
||
The app should now be running at `http://localhost:3000`. | ||
|
||
|
||
|
||
|
||
## Creating the React app from scratch | ||
|
||
To create a similar React app from scratch, follow these steps: | ||
|
||
1. Install the [Create React App](https://reactjs.org/docs/create-a-new-react-app.html) CLI tool: | ||
|
||
``` | ||
npm install -g create-react-app | ||
``` | ||
|
||
2. Create a new React app: | ||
|
||
``` | ||
create-react-app reactor | ||
``` | ||
|
||
3. Navigate to the project directory: | ||
|
||
``` | ||
cd reactor | ||
``` | ||
|
||
|
||
4. Install the necessary dependencies: | ||
|
||
``` | ||
npm install react-ace ace-builds @mui/material react-live react-draggable | ||
``` | ||
|
||
or: | ||
|
||
6. Follow the instructions under "Running the app locally" to set up the environment variables and run the app | ||
|
||
|
||
|
||
## Contributing | ||
Thanks to https://github.com/asj9469 | ||
Contributions are always welcome! Feel free to submit a pull request, create an issue, or suggest new features. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# .gitignore | ||
|
||
|
||
# dependencies | ||
/node_modules | ||
|
||
# builds | ||
/build | ||
/dist | ||
|
||
# misc | ||
.DS_Store | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
# React Live Code Editor with ChatGPT Integration | ||
|
||
This project is a React-based live code editor integrated with OpenAI's ChatGPT API. It provides an interactive and intuitive interface where users can edit and run their code while also getting suggestions and help from ChatGPT. Users can apply the code generated by ChatGPT with a single click, making it a powerful tool for developers to explore and experiment with their ideas. | ||
|
||
|
||
## Live Demo | ||
|
||
The live demo of the app | ||
|
||
## v_2 | ||
|
||
[https://reactor-git-new-design-admineral.vercel.app](https://reactor-phi.vercel.app). | ||
<img src="images/Reactor_v2.gif" alt="Reactor" width="800px"> | ||
|
||
v_1 | ||
[https://reactor-phi.vercel.app](https://reactor-phi.vercel.app). | ||
|
||
<img src="images/reactor_gif.gif" alt="Reactor" width="800px"> | ||
|
||
|
||
|
||
|
||
## Features | ||
|
||
- Live code editing using Ace Editor | ||
- React-Live for real-time rendering of React components | ||
- OpenAI's ChatGPT API integration for code suggestions | ||
- Interactive chat interface for seamless communication with ChatGPT | ||
|
||
|
||
## Deploying on Vercel | ||
|
||
To deploy this app on Vercel, follow these steps: | ||
|
||
1. Fork the repository from GitHub: [Reactor](https://github.com/admineral/Reactor.git) | ||
2. Sign up for a [Vercel account](https://vercel.com/signup) if you don't have one | ||
3. Connect your GitHub account with Vercel | ||
4. Import the forked repository as a new project on Vercel | ||
5. Add your `REACT_APP_API_KEY` as an environment variable in the Vercel project settings | ||
6. Deploy your project | ||
|
||
|
||
|
||
|
||
## Running the app locally | ||
|
||
To run this app locally, follow these steps: | ||
|
||
1. Clone the repository: | ||
|
||
``` | ||
git clone https://github.com/admineral/Reactor.git | ||
``` | ||
|
||
2. Navigate to the project directory: | ||
|
||
``` | ||
cd Reactor | ||
``` | ||
|
||
3. Install the dependencies: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
4. Create a `.env` file in the root of the project directory and add your OpenAI API key: | ||
|
||
``` | ||
REACT_APP_API_KEY=your-api-key | ||
``` | ||
|
||
5. Start the development server: | ||
|
||
``` | ||
npm start | ||
``` | ||
|
||
The app should now be running at `http://localhost:3000`. | ||
|
||
|
||
|
||
|
||
## Creating the React app from scratch | ||
|
||
To create a similar React app from scratch, follow these steps: | ||
|
||
1. Install the [Create React App](https://reactjs.org/docs/create-a-new-react-app.html) CLI tool: | ||
|
||
``` | ||
npm install -g create-react-app | ||
``` | ||
|
||
2. Create a new React app: | ||
|
||
``` | ||
create-react-app reactor | ||
``` | ||
|
||
3. Navigate to the project directory: | ||
|
||
``` | ||
cd reactor | ||
``` | ||
|
||
|
||
4. Install the necessary dependencies: | ||
|
||
``` | ||
npm install react-ace ace-builds @mui/material react-live react-draggable | ||
``` | ||
|
||
or: | ||
|
||
6. Follow the instructions under "Running the app locally" to set up the environment variables and run the app | ||
|
||
|
||
|
||
## Contributing | ||
Thanks to https://github.com/asj9469 | ||
Contributions are always welcome! Feel free to submit a pull request, create an issue, or suggest new features. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.