MagicGPT is a versatile AI-powered application that allows users to engage in conversations with documents, images, and various models. Built with modern web technologies, MagicGPT provides a seamless and intuitive user experience.
- Chat with Documents: Upload and interact with documents, asking questions and receiving detailed responses.
- Chat with Images: Analyze and discuss images with the AI.
- Multiple Conversation Models: Switch between different AI models for varied conversational experiences.
- Framework: React
- Language: TypeScript
- Build Tool: Vite
- Runtime: Node.js
- Framework: Express
- Database: MongoDB
- Node.js (v14 or higher)
- MongoDB
- npm or yarn
- Snake Case variables are fetched from request or any function
- Camel Case variables are created by scratch
-
Clone the Repository
git clone https://github.com/yourusername/magicGPT.git cd magicGPT
-
Install Frontend Dependencies
cd frontend npm install # or yarn install
-
Install Backend Dependencies
cd ../backend npm install # or yarn install
-
Frontend
- Create a
.env
file in thefrontend
directory with the following content:VITE_API_URL=http://localhost:5000/api
- Create a
-
Backend
- Create a
.env
file in thebackend
directory with the following content:PORT=5000 MONGO_URI=mongodb://localhost:27017/magicgpt
- Create a
-
Start the Backend Server
cd backend npm start # or yarn start
-
Start the Frontend Development Server
cd ../frontend npm run dev # or yarn dev
-
Open your browser and navigate to
http://localhost:3000
to start using MagicGPT.
magicGPT/
├── backend/
│ ├── src/
│ │ ├── controllers/
│ │ ├── models/
│ │ ├── routes/
│ │ └── app.js
│ ├── .env
│ ├── package.json
│ └── ...
├── frontend/
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ ├── App.tsx
│ │ └── main.tsx
│ ├── .env
│ ├── vite.config.ts
│ ├── package.json
│ └── ...
├── README.md
└── ...
Contributions are welcome! Please open an issue or submit a pull request with any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or feedback, please reach out to [email protected].
Thank you for using MagicGPT! We hope you enjoy the experience.