Prompt Mania is a web application that allows users to create an account, write and share prompts with other users, and copy prompts from other users. The application is built using Next.js and utilizes the Next.js Auth library for user authentication. It covers all CRUD operations, allowing users to create, edit, and delete their prompts, as well as view prompts from other users.
User Authentication: Users can create an account and log in using the Next.js Auth library. This provides secure access to the application and ensures that each user has their own set of prompts. Create Prompts: Authenticated users can create new prompts by providing a title, description, and content. This allows users to express their creativity and share their ideas with the community. Edit Prompts: Users can edit their own prompts, making it easy to update the content or make changes to the prompt as needed. Delete Prompts: Authenticated users have the ability to delete their prompts if they no longer wish to share them or want to remove them from the platform. View Other Users' Prompts: Users can browse and view prompts created by other users. This allows for inspiration, collaboration, and sharing of ideas within the community. Copy Prompts: Users have the option to copy prompts created by other users. This feature allows them to use the prompt as a starting point for their own writing or creative projects. Technologies Used Next.js: Next.js is a React framework that provides server-side rendering, routing, and other powerful features for building web applications. Next.js Auth: Next.js Auth is a library that provides an authentication system for Next.js applications. It simplifies the process of implementing user authentication and authorization. React: React is a JavaScript library for building user interfaces. It allows for the creation of reusable UI components and provides a declarative approach to building interactive UIs. CSS: Cascading Style Sheets (CSS) is used for styling the application, ensuring a visually appealing and consistent user interface. MongoDB: MongoDB is a NoSQL database that stores the prompts and user information. It provides a flexible and scalable solution for data storage. Express: Express is a minimal and flexible Node.js web application framework that handles the server-side logic and API endpoints for the application.
To get started with Prompt Mania, follow these steps:
Clone the repository: git clone https://github.com/your-username/prompt-mania.git Navigate to the project directory: cd prompt-mania Install the dependencies: npm install Set up the environment variables: Create a .env file in the project root directory and add the necessary environment variables, such as database connection details and authentication secrets. Start the development server: npm run dev Open your browser and access the application at http://localhost:3000