Skip to content

kunalsanga/Learning-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# My App

This project is a web application that includes a chatbot feature using a conversational AI API.

## Prerequisites

- Node.js and npm installed
- Python and Django installed for the backend

## Setup Instructions

### Frontend

1. **Navigate to the frontend directory**:
   ```bash
   cd my-app
   ```

2. **Install dependencies**:
   ```bash
   npm install
   ```

3. **Create a `.env` file** in the root of the `my-app` directory and add your API key:
   ```
   REACT_APP_CHAT_API_KEY=your_api_key_here
   ```

4. **Start the frontend server**:
   ```bash
   npm run dev
   ```

### Backend

1. **Navigate to the backend directory**:
   ```bash
   cd django-backend
   ```

2. **Activate the virtual environment**:
   ```bash
   .\venv\Scripts\activate
   ```

3. **Run the Django server**:
   ```bash
   python manage.py runserver
   ```

## Usage

- Open your browser and navigate to `http://localhost:3000` to access the frontend.
- The backend should be running on `http://localhost:8000`.

## Troubleshooting

- Ensure all dependencies are installed.
- Check the console for any error messages.
- Verify that the API key is correctly set in the `.env` file.

## License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published