Welcome to the Assessment App! This application allows users to take a quiz with questions of varying difficulty levels.
- Fetches questions from an API and shuffles them for a randomized quiz experience.
- Dynamically adjusts difficulty levels based on user performance.
- Calculates and displays the user's quiz score.
- Sends quiz results to a server for storage.
- Responsive design for various screen sizes.
Make sure you have Node.js and npm installed on your machine.
- Node.js: Download here
- npm: Included with Node.js installation
- Maven: Download here
- Java: Download here
- PostgresSQL: Download here
-
Clone the repository:
git clone https://github.com/your-username/react-quiz-app.git
-
Navigate to the Front-End Directory
cd Front-end
-
Install the required packages:
npm install
-
Start the application:
npm run dev
-
In The Root Directory
mvn spring-boot:run
This will start the backend server on port 8080 and the front-end server on port 3000.
-
/api/users
- GET: Get all users
-
/api/auth/login
- POST: Login user
-
/api/questions
- GET: Get all questions
-
/api/quiz-results -POST: /save - Save quiz result -GET: /all - Get quiz results of all the users
-
/upload -POST: Extract question from a excel .xlsx file and save it to the database
Since the project is in development, application.properties file is included in the repository. The PostgresSQL database is hosted on Render and the credentials are included in the application.properties file.
-
Go to /login and login with the following credentials:
- Username: test
- Password: root
-
Take the quiz and see the results in the Results.
-
To upload a new set of questions, go to Upload tab and upload the .xlsx file.
-
To see all the question in the database, go to the questions tab.