Saarthi is an intelligent chatbot web application powered by the OpenAI API. It provides a seamless user experience with features such as user authentication, chat history storage, and responsiveness.
- User Authentication: Users can sign in using their email and password.
- Chatbot Interaction: Users can ask any questions to the chatbot.
- Chat History: The chat history is stored, allowing users to view past interactions after Signing In.
- Responsive Design: The web app is fully responsive, providing a consistent experience across devices.
Saarthi.Chatbot.working.demo.-.Made.with.Clipchamp.mp4
To run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/arghyadutta080/Chatbot.git cd Chatbot
-
Open the
Chatbot
directory in your Code-Editor (In my case it's VS-Code) -
Open the terminal in your Code-Editor and split it into two terminals
-
In the first terminal move to the server directory:
cd server
-
Install dependencies:
npm install
-
Create a
.env
file at the root of theserver
directory with the following content:PORT=5000 OPENAI_API_KEY=<your-openai-api-key> MONGODB_URL=mongodb+srv://arghyadutta080:BLg3fLjlakhRjn3q@cluster0.o6nftlo.mongodb.net/ JWT_SECRET=jhihiutvieuwvievnuoigonhooger
-
Run the
server
:npm run start
-
In the second terminal move to the
client
directory:cd client
-
Install dependencies:
npm install
-
Run the
client
:npm run dev
-
Now, You will be redirected to localhost:3000
Contributions to the project are welcome! To contribute, fork the repository and create a new branch for your changes. Once you have made your changes, create a pull request to merge your branch into the main repository.