Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/manthanank/chatgpt-clone-app

Chatgpt Clone App
https://github.com/manthanank/chatgpt-clone-app

angular nodejs

Last synced: about 6 hours ago
JSON representation

Chatgpt Clone App

Awesome Lists containing this project

README

        

# ChatGPT Clone Application

This is a simple clone of the ChatGPT website built using Angular and Tailwind CSS.

## Table of Contents

- [Features](#features)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Running the Application](#running-the-application)
- [License](#license)

## Features

- **Chat Interface**: A simple chat interface where users can interact with the ChatGPT model.
- **Chat Input**: Users can type messages in the chat input and send them to the model.
- **Chat Output**: The model's response is displayed in the chat interface.

## Prerequisites

Make sure you have the following installed:

- Node.js and npm: [Download and Install Node.js](https://nodejs.org/)
- MongoDB: [Download and Install MongoDB](https://www.mongodb.com/try/download/community)
- Angular CLI: Install globally using `npm install -g @angular/cli`

## Installation

1. **Clone the repository**:

```bash
git clone https://github.com/manthanank/chatgpt-clone-app.git
cd chatgpt-clone-app
```

2. **Backend setup**:

Navigate to the `backend` folder and install the dependencies:

```bash
cd backend
npm install
```

3. **Frontend setup**:

Navigate to the `frontend` folder and install the dependencies:

```bash
cd ..
npm install
```

4. **Configure Tailwind CSS**:

Tailwind CSS should already be configured. If not, follow these steps:

- Install Tailwind CSS and its dependencies:

```bash
npm install tailwindcss postcss autoprefixer
```

- Initialize Tailwind CSS:

```bash
npx tailwindcss init
```

- Update `tailwind.config.js`:

```javascript
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{html,ts}"
],
theme: {
extend: {},
},
plugins: [],
}
```

- Create `postcss.config.js`:

```javascript
module.exports = {
plugins: [
require('tailwindcss'),
require('autoprefixer'),
]
}
```

- Update `src/styles.css`:

```css
@tailwind base;
@tailwind components;
@tailwind utilities;
```

## Running the Application

1. **Start the backend server**:

Navigate to the `backend` folder and start the server:

```bash
cd backend
npm start
```

The backend server will run on `http://localhost:3000`.

2. **Start the Angular development server**:

Navigate to the `frontend` folder and start the Angular server:

```bash
cd ..
ng serve
```

The Angular app will run on `http://localhost:4200`.

## License

This project is licensed under the MIT License.