Anonymous QnA is an application that allows users to receive and answer anonymous questions from people worldwide, common more across friends!
- User Authentication: Secure login system using Google authentication.
- Personal Dashboard:
- View questions received from anonymous users.
- Answer questions directly from the dashboard.
- Delete unwanted questions.
- Profile Sharing:
- Unique profile link for each user.
- Easy sharing options to invite others to ask questions.
- Theme Toggle: Switch between light and dark modes for comfortable viewing.
- Ask Questions: Submit anonymous questions to registered users.
- View Profiles: Browse user profiles and see their answered questions.
- User Search: Search for registered users by name.
- Responsive Design: Works seamlessly on desktop and mobile devices.
- Real-time Updates: Instant feedback on actions like submitting questions or answers.
-
Frontend:
- Next.js 14 (React framework)
- TypeScript
- Tailwind CSS for styling
- shadcn/ui for UI components
-
Backend:
- Next.js API Routes
- Prisma ORM
-
Database:
- PostgreSQL hosted on vercel
-
Authentication:
- NextAuth.js with Google provider
-
Deployment:
- Vercel (recommended)
- Node.js (v14 or later)
- npm or yarn
- PostgreSQL database
-
Clone the repository:
git clone https://github.com/yourusername/anonymous-qna.git cd anonymous-qna
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add the following:DATABASE_URL="your_postgresql_connection_string" AUTH_SECRET="your_nextauth_secret" AUTH_GOOGLE_ID="your_google_client_id" AUTH_GOOGLE_SECRET="your_google_client_secret"
-
Set up the database:
npx prisma migrate dev
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser.
The easiest way to deploy this app is using the Vercel Platform. Follow these steps:
- Push your code to a GitHub repository.
- Connect your GitHub account to Vercel.
- Import the project from GitHub to Vercel.
- Set up the environment variables in Vercel's dashboard.
- Deploy!
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.