Skip to content

Commit

Permalink
Vercel bug?
Browse files Browse the repository at this point in the history
  • Loading branch information
admineral committed May 16, 2023
1 parent 3bb0782 commit 015a12f
Show file tree
Hide file tree
Showing 43 changed files with 60,617 additions and 0 deletions.
122 changes: 122 additions & 0 deletions README.md
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.

24 changes: 24 additions & 0 deletions Reactor_old/.gitignore
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
122 changes: 122 additions & 0 deletions Reactor_old/README.md
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.

Binary file added Reactor_old/images/Reactor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reactor_old/images/Reactor_v2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Reactor_old/images/reactor_gif.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 015a12f

Please sign in to comment.