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
.