A fullstack web application using the modern NEXT.js React framework. It is a AI chat prompt suggestion generator that uses Google Authentication and MongoDB.
First, create a .env
file in the root dir and add these variables.
GOOGLE_ID=<GOOGLE CLOUD PROJECT ID>
GOOGLE_CLIENT_SECRET=<GOOGLE CLOUD PROJECT ID>
MONGODB_URI=<MONGODB URL>
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_URL_INTERNAL=http://localhost:3000
NEXTAUTH_SECRET=hkmwTmU5v7keN7PO5WiVgXZBgcH9tEXiYEItgoz7Fxs=
Finally, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.