Chatty Pete is a chat application powered by ChatGPT, created using Next.js, OpenAI API with GPT-3.5 turbo model, Tailwind CSS for styling, MongoDB for persistence, and Auth0 by Okta for authorization.
-
Chat with ChatGPT: Engage in natural language conversations with ChatGPT, powered by the OpenAI GPT-3.5 turbo model.
-
Persistent Chats: All your chat history is stored in MongoDB, allowing you to pick up conversations where you left off.
-
Secure Authorization: Auth0 by Okta is used for secure user authentication and authorization.
-
Responsive UI: The UI is designed using Tailwind CSS to ensure a responsive and visually appealing experience on various devices.
-
Clone the repository:
git clone https://github.com/your-username/chatty-pete.git
-
Install dependencies:
cd chatty-pete npm install
-
Set up environment variables:
Create a
.env
file in the root directory with the following variables:OPENAI_API_KEY=your_openai_api_key MONGODB_URI=your_mongodb_uri AUTH0_DOMAIN=your_auth0_domain AUTH0_CLIENT_ID=your_auth0_client_id AUTH0_CLIENT_SECRET=your_auth0_client_secret
Replace the placeholder values with your actual API keys and credentials.
-
Run the development server:
npm run dev
Open http://localhost:3000 in your browser to access Chatty Pete.
Special thanks to Tom Phillips for the helpful guidance in learning Next.js.
This project is licensed under the MIT License - see the LICENSE file for details.