Prompt Hub is an open-source AI prompting tool for the modern world to discover, create, and share creative prompts.
View the live version of the project hosted on Vercel Prompt Hub AI ๐
- Next.js
- MongoDB
- NextAuth
- TailwindCSS
Follow these steps to set up the project locally on your machine.
Make sure you have the following installed on your machine:
Installation
Install the project dependencies using npm:
npm install
Set Up Environment Variables
Create a new file named .env
in the root of your project and add the following content:
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
MONGODB_URI=
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_URL_INTERNAL=http://localhost:3000
NEXTAUTH_SECRET=
Replace the placeholder values with your actual credentials. You can obtain these credentials by signing up on these corresponding websites from Google Cloud Console, Cryptpool (for random Auth Secret), and MongoDB.
Running the Project
npm run dev
Open http://localhost:3000 in your browser to view the project.