This real-time quiz application, built with Next.js, Socket.io and Prisma, offers real time communication.It shows a leaderboard with the highest ratings and gives you the chance to compete with others.
- Features
- Tech Stack
- Getting Started
- Installation
- Configuration
- Running the Project
- Folder Structure
- Contributing
- License
- Answer Question: Answer questions in real time.
- Competition: Compete with people around the world.
- View Leaderboard: View people who are ahead of you.
- Save Info: Preserve information for future games.
- Improve Skills: Improve logical reasoning.
- Next.js
- TypeScript
- Socket.io
- Prisma
- PostgreSQL
- Tailwind CSS
Follow the instructions below to set up the project locally on your machine.
- Node.js (v16 or later): Download Node.js
- Git: Download Git
- PostgreSQL: Install PostgreSQL (Not Necessary)
-
Clone the repository:
git clone https://github.com/centauricoder01/real-time-quiz-website.git
-
Navigate to the project directory:
cd real-time-quiz-website
-
Install dependencies:
npm install
Create a .env
file in the root directory of your project and add the following environment variables:
DATABASE_URL=postgresql://user:password@localhost:5432/quiz-website
NEXT_PUBLIC_APP_URL="http://localhost:3000"
npx prisma migrate dev
npm run dev
npm run build
ai-plagiarism-detector/
├── public/ # Static assets
├── src/ # Source files
│ ├── app/
├── api/ #All APIs
├── other_page/ #Other Pages
│ ├── components/ # Reusable components
│ ├── hooks/ # custom hooks
│ └── libs/ # Utility functions
├── .env.local # Environment variables
├── next.config.js # Next.js configuration
├── package.json # Dependencies and scripts
├── README.md # Project documentation
└── tsconfig.json # TypeScript configuration
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are welcome.
-
Fork the repository:
Go to the repository on GitHub and click the "Fork" button at the top right corner.
-
Create a feature branch:
git checkout -b feature-name
-
*Commit your changes:
git commit -m 'Add some feature'
-
Push to the branch:
git push origin feature-name
Thank you for your contribution! If you found this project helpful, please consider giving it a star ⭐.
This project is licensed under the MIT License. See the LICENSE file for more details.