NextStudy AI is a web platform that uses artificial intelligence (Gemini) to transform uploaded documents into interactive and intelligent quizzes in just seconds. The project is server-side developed in PHP, with a simple and modular structure designed to be easily expandable.
-
File Upload: supports
.txt,.csvand.mdformats up to 10MB. -
Automatic AI Quiz Generation: analyzes documents and generates personalized questions based on content.
-
Review and Sharing: users can modify, save and share generated quizzes.
-
Authentication System: secure access for each user with automatic redirection to personal dashboard.
The homepage presents an introductory description and a button that invites the user to start creating their own account.
After logging in, the user is redirected to the dashboard, where they can manage their files, view generated quizzes, and create new ones.
Admins can manage users, track support tickets, update statuses, and view a paginated overview of the platform.
Once a file is selected and the continue button is clicked, you will see the Configure Your Quiz page with all customization options.
After configuring the quiz, users can view the generated quiz with interactive questions and answers.
| Component | Description |
|---|---|
| PHP | Backend management, server-side logic and user sessions |
| HTML5 / CSS3 | Structure and styling of the user interface |
| JavaScript / AJAX | Dynamic interaction handling (redirects, asynchronous loading, light animations) |
| MySQL | Relational database for users, files and quizzes |
-
Clone the repository:
git clone https://github.com/your-username/nextstudy.git
-
Move the folder: Move the folder to your PHP development environment (for example, to the htdocs directory of XAMPP).
-
Create a .env file with the necessary credentials: In the project root, create a
.envfile and define your database connection settings and Gemini API key as environment variables:# Your database credentials DB_HOST= DB_USER= DB_PASS= DB_NAME= # Your Gemini API Key API_KEY=
-
Create the database: Open phpMyAdmin (or any MySQL client) and create a new database
CREATE DATABASE <yourDBNAME> CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
-
Copy the SQL script and run it in phpMyAdmin to create the tables, triggers and stored procedures:
-
Start the local server:
php -S localhost:8000
-
Open the project in your browser:
http://localhost/nextstudyai
Feel free to fork the repository, open issues or submit pull requests. Please follow the coding style and comment your code where necessary.




