![logo](https://private-user-images.githubusercontent.com/117097248/280071919-e54f37be-b2b7-4373-a4ec-4163dd2bcf8f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1OTg2NTIsIm5iZiI6MTcyNTU5ODM1MiwicGF0aCI6Ii8xMTcwOTcyNDgvMjgwMDcxOTE5LWU1NGYzN2JlLWIyYjctNDM3My1hNGVjLTQxNjNkZDJiY2Y4Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNlQwNDUyMzJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iNThiMDczYzBhZWI5ZTcxYjVlYjgxMmM5MTllNDBiOGYxN2ZlZmVkZWFmY2MwMzAwYmQ5ZjYyMjNiZjc5ZTg4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.JD4KrUpMo9kuzPZUqNLgkpeqlvtC5vec7g8NepiKFuI)
Chat-Shastra is an Advanced Next13 Chat-Bot as well as AI Image Generator Using Open-AI API. Basically its a combination of Chat-GPT and Dall-E for free. We also Use Clerk for Authentication.
Chat-Shastra.mp4
Follow these steps to install and run the project:
-
Clone the repository
Open your terminal and run the following command to clone the repository:
https://github.com/sanskargouchandra/Chat-Shastra.git
-
Navigate to the project directory
cd Chat-Shastra
-
Install Node.js
The project requires Node.js to run. If you don't have it installed, you can download it from here.
-
Install the required packages
The project requires several packages to be installed. Run the following command to install them:
npm i
-
Install the required fonts
The project requires the "font-inter" and "font-spaceGrotesk" fonts to be available. You can download them from Google Fonts.
-
Set up the environment variables
- Create
.env.local file
in fail folder - Create Clerk ccount and past the api keys in .env.local
- Also create OpenAI API and pate it on .env.local.
NEXT_PUBLIC_OPENAI_ORGANIZATION_ID=**** NEXT_PUBLIC_OPENAI_API_KEY=*** NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=**** CLERK_SECRET_KEY=**** NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/Intro NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/Intro
- Create
-
Start the server
Run the following command to start the server:
npm run start
Now, you should be able to access the project at http://localhost:3000
.