Lumina is a platform for sharing and exploring AI prompts, encouraging creativity and collaboration among users. Discover the power of AI-generated content and unlock your creative potential with Lumina.
- Share and discover AI prompts
- Collaborate with other creators
- Explore AI-generated content
- User authentication and profiles
- Responsive and modern UI
- Framework: Next.js
- Authentication: NextAuth.js
- Database: MongoDB
- Styling: Tailwind CSS
- State Management: React Hooks
- Deployment: Vercel
- Node.js (v14 or higher)
- pnpm (or npm/yarn)
- MongoDB database
-
Clone the repository:
git clone https://github.com/AvishkaGihan/lumina-prompt-platform.git cd lumina-prompt-platform
-
Install dependencies:
pnpm install # or npm install # or yarn install
-
Set up environment variables: Create a
.env
file in the root directory and add:NEXTAUTH_URL=http://localhost:3000 NEXTAUTH_SECRET=your-nextauth-secret GOOGLE_ID=your-google-client-id GOOGLE_CLIENT_SECRET=your-google-client-secret MONGODB_URI=your-mongodb-uri
Start the development server:
pnpm dev
# or
npm run dev
# or
yarn dev
Open http://localhost:3000 in your browser to see the result.
Build the project:
pnpm build
# or
npm run build
# or
yarn build
Start the production server:
pnpm start
# or
npm start
# or
yarn start
lumina-prompt-platform/
├── app/ # Next.js app directory
│ ├── api/ # API routes
│ ├── create-prompt/
│ ├── profile/
│ ├── update-prompt/
│ ├── layout.jsx # Root layout
│ └── create-prompt/ # Create prompt page
├── components/ # Reusable UI components
├── models/ # MongoDB models
├── public/ # Static assets
├── styles/ # Global styles
├── utils/ # Utility functions
├── .env # Environment variables
├── .gitignore
├── next.config.mjs # Next.js configuration
├── package.json # Project dependencies
├── pnpm-lock.yaml # Lock file
├── postcss.config.mjs # PostCSS configuration
└── tailwind.config.js # Tailwind CSS configuration
app/
: Contains the main application components and pagescomponents/
: Reusable UI componentsmodels/
: Mongoose models for MongoDButils/
: Utility functions and helpersstyles/
: Global and component-specific styles
- Next.js Documentation - Learn about Next.js features and API
- Learn Next.js - Interactive Next.js tutorial
- Next.js GitHub Repository
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js. Check out the Next.js deployment documentation for more details.
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Description: Overview of the home page featuring the prompt feed and navigation.
Description: User profile page showing created prompts and user information.
Description: Interface for creating new AI prompts with tag selection and prompt input.
- Next.js team for the amazing framework
- Vercel for the deployment platform
- MongoDB for the database solution
- All contributors who help improve the platform