Requirements
Before installing the application, ensure your system meets the following requirements:- PHP: ^8.2 or higher
- Composer: Latest version
- Node.js: Latest LTS version
- Database: SQLite (default) or MySQL/PostgreSQL
This Laravel 12 application uses SQLite by default for quick setup. You can switch to MySQL or PostgreSQL by modifying the
.env file.Installation Steps
Run the setup script
The project includes an automated setup script that handles installation:This command will:
- Install all PHP dependencies via Composer
- Create a
.envfile from.env.exampleif it doesn’t exist - Generate an application key
- Run database migrations
- Install Node.js dependencies
- Build frontend assets
Create SQLite database (if using SQLite)
If you’re using the default SQLite configuration, create the database file:Then run migrations:
Database Schema
The application includes the following main tables:- institutions - Educational institutions
- users - System users (students, teachers, administrators)
- sections - Class sections
- registrations - Student enrollments
- units - Course units
- topics - Unit topics
- resources - Educational resources
- questions - Assessment questions
- response_options - Question answer options
- evaluations - Student evaluations
- eval_preguntas - Evaluation questions
Alternative: Manual Installation
If you prefer to install manually:Next Steps
After installation, you’re ready to:- Start the development server
- Make your first API request
- Configure Laravel Sanctum for authentication
Troubleshooting
Permission Issues
If you encounter permission errors, ensure the storage and cache directories are writable:Database Connection Errors
For SQLite:- Ensure
database/database.sqliteexists - Check that
DB_CONNECTION=sqlitein your.env
- Verify database credentials in
.env - Ensure the database exists and is accessible
- Check that the database server is running