-
Run a MongoDB Container
docker run -d -p 27017:27017 mongo
-
Create a Secret
openssl rand --base64 32
-
Create OAuth Secret
-
Create a New Project:
Go to the Google Cloud Console. -
Configure OAuth Consent Screen
- Navigate to API and Services: Go to
API and Services
and then click onOAuth consent screen
. - Create OAuth Consent Screen: Select the appropriate user type and click
Create
. - Fill Out the Consent Screen Information:
- App name: Enter your app name.
- User support email: Enter a user support email.
- Developer contact information: Enter the developer's contact information.
- Click
Save and Continue
.
- Navigate to API and Services: Go to
-
Create OAuth Credentials
- Go to Credentials:
- In the left-hand menu under
API and Services
, click onCredentials
.
- In the left-hand menu under
- Create Credentials:
- Click on
Create credentials
and selectOAuth 2.0 Client IDs
.
- Click on
- Add OAuth Client Details:
- Name: Enter a name for your OAuth client.
- Authorized JavaScript Origins:
- Add your application's origin. Example:
http://localhost:3000
.
- Add your application's origin. Example:
- Authorized Redirect URIs:
- Add the redirect URIs where Google will send responses to your authentication requests. Example:
http://localhost:3000/api/auth/callback/google
.
- Add the redirect URIs where Google will send responses to your authentication requests. Example:
- Save:
- Click
Create
. You will be provided with aClient ID
andClient Secret
.
- Click
- Go to Credentials:
-
-
Configure Environment Variables
-
Create a
.env
file: In the root directory of your Next.js application, create a file named.env
. -
Add the following environment variables:
GOOGLE_CLIENT_ID=your-client-id GOOGLE_CLIENT_SECRET=your-client-secret MONGODB_URI="mongodb://localhost:27017/mydatabase" NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_URL_INTERNAL=http://localhost:3000 NEXTAUTH_SECRET=your-generated-secret
-
-
Start the Application
npm install
npm run dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Promptverse is an open-source AI tool for discovering, creating, and sharing creative prompts across various fields.
iam-abhishek-yadav/promptverse
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Promptverse is an open-source AI tool for discovering, creating, and sharing creative prompts across various fields.