What's used in this app ? | How to run ? | Author |
---|---|---|
|
|
|
|
I'm always open to collaboration and welcome the opportunity to work on exciting projects together.
Thank you for visiting my project. I hope you have a wonderful experience exploring it, and I look forward to connecting with you soon!
prompthub_nextjs (folder)
|
|----readme.md
├── public
| ├──── assets
| | └── icons
| | └── images
├── app
| ├──── api
| | └── auth
| | | └── [...nextauth]
| | | | └── route.js
| | └── prompt
| | | └── filterPrompt
| | | | └── route.js
| | | └── getAllPrompts
| | | | └── route.js
| | | └─── new
| | | | └── route.js
| ├──── create-prompt
| | └── page.jsx
| | | └── components
| ├──── profile
| | └── [profileId]
| | | └── page.jsx
| | └── page.jsx
│ ├── page.jsx
│ ├── layout.js
│ └── error.js
│ └── loading.js
│ └── not-found.js
├── components
│ ├── Feed.jsx
│ ├── Form.js
│ └── Nav.js
│ └── PromptCard.js
│ └── PromptCardList.js
| └── Provider.jsx
├── models
│ └── prompt.js
│ └── user.js
├── styles
| └── globals.css
├── utils
| └── database.js
├── .env
|── .gitignore
|── jsconfig.json
|── next.config.js
|── package-lock.json
├── package.json
|── postcss.config.js
|── tailwind.config.js
To get started with PromptHub, follow these steps:
- Clone the repository:
git clone https://github.com/your-username/PromptHub.git cd PromptHub
- Install Dependencies:
yarn
- Create a local environment variables file .env.local with the following fields:
GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET MONGODB_URI=YOUR_MONGODB_URI NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_URL_INTERNAL=http://localhost:3000 NEXTAUTH_SECRET=YOUR_NEXTAUTH_SECRET
- Start the development server:
yarn dev