Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iam-abhishek-yadav/promptverse
Promptverse is an open-source AI tool for discovering, creating, and sharing creative prompts across various fields.
https://github.com/iam-abhishek-yadav/promptverse
bcrypt bcrypt-ts javascript mongodb mongoose next-auth nextjs
Last synced: about 2 months ago
JSON representation
Promptverse is an open-source AI tool for discovering, creating, and sharing creative prompts across various fields.
- Host: GitHub
- URL: https://github.com/iam-abhishek-yadav/promptverse
- Owner: iam-abhishek-yadav
- Created: 2024-06-23T18:37:07.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-26T06:20:35.000Z (4 months ago)
- Last Synced: 2024-08-26T07:48:34.062Z (4 months ago)
- Topics: bcrypt, bcrypt-ts, javascript, mongodb, mongoose, next-auth, nextjs
- Language: JavaScript
- Homepage: https://promptverse-mu.vercel.app
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Starting the Application
- **Run a MongoDB Container**
```sh
docker run -d -p 27017:27017 mongo
```- **Create a Secret**
```sh
openssl rand --base64 32
```- **Create OAuth Secret**
- `Create a New Project:` Go to the [Google Cloud Console](https://console.cloud.google.com/).
- `Configure OAuth Consent Screen`- **Navigate to API and Services**: Go to `API and Services` and then click on `OAuth 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`.- `Create OAuth Credentials`
- **Go to Credentials**:
- In the left-hand menu under `API and Services`, click on `Credentials`.
- **Create Credentials**:
- Click on `Create credentials` and select `OAuth 2.0 Client IDs`.
- **Add OAuth Client Details**:
- **Name**: Enter a name for your OAuth client.
- **Authorized JavaScript Origins**:
- Add your application's origin. Example: `http://localhost:3000`.
- **Authorized Redirect URIs**:
- Add the redirect URIs where Google will send responses to your authentication requests. Example: `http://localhost:3000/api/auth/callback/google`.
- **Save**:
- Click `Create`. You will be provided with a `Client ID` and `Client Secret`.- **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**:
```env
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**
```sh
npm install
``````sh
npm run dev
```