Skip to content

Commit

Permalink
Merge pull request #260 from praptisharma28/chatgpt
Browse files Browse the repository at this point in the history
feat: Chatgpt clone added
  • Loading branch information
Kritika30032002 authored Feb 2, 2024
2 parents c7ca6ec + be8176c commit 7358547
Show file tree
Hide file tree
Showing 40 changed files with 14,588 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
runs-on: ${{ (matrix.language == 'javascript' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'javascript' && 120) || 360 }}
permissions:
actions: read
contents: read
Expand Down
55 changes: 55 additions & 0 deletions Chatgpt_Clone/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# ChatGPT_Clone

The ChatGPT Clone project is a recreation of the core functionalities of ChatGPT, an AI-powered conversational agent developed by OpenAI, using the MERN (MongoDB, Express.js, React.js, Node.js) stack. It aims to mimic the conversational capabilities and user experience of the original ChatGPT system.

#### Tech Stack
- **Frontend:** React.js, HTML, CSS
- **Backend:** Node.js, Express.js
- **Database:** MongoDB
- **Dependencies:** npm, react-scripts

#### Demo
A demonstration of the ChatGPT Clone is available on YouTube: [ChatGPT Clone Demo](https://youtu.be/OdeF5tuaFl0)

### How to Run

1. **Clone the Repository:**
```bash
git clone https://github.com/Kritika30032002/ReactCreations.git
```

2. **Navigate to the Project Directory:**
```bash
cd ReactCreations\Chatgpt_Clone
```

3. **Install Frontend Dependencies:**
```bash
cd client
npm install
```

4. **Install Backend Dependencies:**
```bash
cd ..
cd server
npm install
```

5. **Start the Backend Server:**
```bash
npm start
```

6. **Start the Frontend Server:**
```bash
cd ..
cd client
npm start
```

7. **Access the Server:**
Once both servers are running, access the ChatGPT Clone in your web browser by navigating to `http://localhost:3000`.

#### Note
Ensure that you have Node.js and npm installed on your system before running the servers. Additionally, MongoDB must be installed and running locally or accessible via a cloud-based service.
23 changes: 23 additions & 0 deletions Chatgpt_Clone/client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
70 changes: 70 additions & 0 deletions Chatgpt_Clone/client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Loading

0 comments on commit 7358547

Please sign in to comment.