Skip to content

kaplanh/propmthub

Repository files navigation

    prompthub_nextjs

What's used in this app ? How to run ? Author
  • NextJS
  • Next-auth
  • Next-auth-Google Provider
  • Google Cloud
  • React
  • Ract-dom
  • mongodb
  • mongoose
  • bcrypt
  • Tailwind CSS
  • Once you clone the project

    1. run pnpm install or yarn install for node modules
    2. run pnpm run dev or yarn run dev for open development stage
  • Take a look at my other projects
  • Visit me on Linkedin
  • What is this project about ?

      How does my project look

    Live Link

    PromptHub

      Feedback and Collaboration

    I value your feedback and suggestions. If you have any comments, questions, or ideas for improvement regarding this project or any of my other projects, please don't hesitate to reach out.
    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!

    Project Skeleton

    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
    

    Getting Started

    To get started with PromptHub, follow these steps:

    1. Clone the repository:
      git clone https://github.com/your-username/PromptHub.git
      cd PromptHub
    2. Install Dependencies:
      yarn
    3. 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
    4. Start the development server:
      yarn dev