This is a quiz app built using the MERN (MongoDB, Express.js, React.js, Node.js) stack.
- User authentication and authorization
- Create, edit, and delete quizzes
- Take quizzes and view results
- Leaderboard to track top scorers
- Admin panel to manage quizzes and users
- MongoDB: Database for storing quiz data and user information
- Express.js: Backend framework for handling API requests
- React.js: Frontend library for building the user interface
- Node.js: JavaScript runtime environment for running the server
- Redux: State management library for React.js
- Bootstrap: CSS framework for styling the app
- Node.js and npm installed on your machine
- MongoDB installed and running
-
Clone the repository:
git clone https://github.com/your-username/quiz-app.git
-
Install the dependencies:
cd quiz-app npm install
-
Set up the environment variables:
-
Create a
.env
file in the root directory -
Add the following variables:
MONGODB_URI=your-mongodb-uri JWT_SECRET=your-jwt-secret
-
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
to access the app.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License.