Welcome to Ayira's Affirmations, a 'Words of Affirmation' web application designed to provide positive affirmations using the OpenAI API. This README will guide you through setting up the application locally.
Ayira's Affirmations is built using:
- TypeScript
- Tailwind CSS
- Next.js
The application leverages:
- Express.js for serverless functionality
- Next-auth for authentication
- MongoDB for data storage
- Pinecone database for storing vectors from a TXT file
The template and user interface were forked from javascript mastery.
You can watch along to get the appropriate envs to use for google and the urls.
You are a software engineer so do research to get pinecone and OpenAi envs
To run Ayira's Affirmations locally or deploy it, you need to set up the following environment variables:
NEXT_PUBLIC_GOOGLE_ID=
NEXT_PUBLIC_GOOGLE_CLIENT_SECRET=
NEXT_PUBLIC_MONGODB_URI=
NEXTAUTH_URL=
NEXTAUTH_URL_INTERNAL=
NEXTAUTH_SECRET=
NEXT_PUBLIC_OPENAI_API_KEY=
NEXT_PUBLIC_PINECONE_API_KEY=
NEXT_PUBLIC_PINECONE_ENVIRONMENT=
To clone the repository and set up Ayira's Affirmations locally, follow these steps:
-
Clone the repository:
git clone https://github.com/robinmuhia/gpt_prompter/
-
Navigate to the project directory
-
Install dependencies:
npm install
Once you have cloned the repository and installed the dependencies, you can start the Next.js server using the following command:
npm run dev