Skip to content

This is a 'Words of affirmation' web application that uses the OpenAI API to give words of affirmation. A user can also upload a txt file for users to query.

Notifications You must be signed in to change notification settings

robinmuhia/gpt_prompter

Repository files navigation

Ayira's Affirmations

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.

Front-end Infrastructure

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

Environment Variables

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=

Cloning the Repository

To clone the repository and set up Ayira's Affirmations locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/robinmuhia/gpt_prompter/
  2. Navigate to the project directory

  3. Install dependencies:

    npm install

Starting the Next.js Server

Once you have cloned the repository and installed the dependencies, you can start the Next.js server using the following command:

npm run dev

About

This is a 'Words of affirmation' web application that uses the OpenAI API to give words of affirmation. A user can also upload a txt file for users to query.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published