{"id":29860568,"url":"https://github.com/matviyroman/admin-panel","last_synced_at":"2026-02-08T00:32:24.020Z","repository":{"id":306741629,"uuid":"1027072013","full_name":"MatviyRoman/Admin-Panel","owner":"MatviyRoman","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-27T09:36:34.000Z","size":689,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-27T11:26:18.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Blade","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MatviyRoman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-27T08:50:55.000Z","updated_at":"2025-07-27T09:36:37.000Z","dependencies_parsed_at":"2025-07-27T11:27:29.205Z","dependency_job_id":"fe32d8ec-3f31-4713-9796-06c0874593f5","html_url":"https://github.com/MatviyRoman/Admin-Panel","commit_stats":null,"previous_names":["matviyroman/admin-panel"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MatviyRoman/Admin-Panel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatviyRoman%2FAdmin-Panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatviyRoman%2FAdmin-Panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatviyRoman%2FAdmin-Panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatviyRoman%2FAdmin-Panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatviyRoman","download_url":"https://codeload.github.com/MatviyRoman/Admin-Panel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatviyRoman%2FAdmin-Panel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29214394,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T00:10:47.190Z","status":"ssl_error","status_checked_at":"2026-02-08T00:10:43.589Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-30T03:42:49.842Z","updated_at":"2026-02-08T00:32:24.005Z","avatar_url":"https://github.com/MatviyRoman.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test Assignment: Build a Filament Admin Panel and a Front-Facing Page\n\nThis is a Laravel 11 application built as a test assignment, utilizing Filament 3 for the admin panel. The application is designed to manage two primary models: `CharacteristicCategories` and `Characteristics`.\n\n## Models and Database Schema\n\n### 1. `CharacteristicCategory`\n\n- `id` (primary key)\n- `name` (string)\n- `Timestamps` (created_at, updated_at)\n\n### 2. Relationships (`CharacteristicCategory`)\n\n- `Has many Characteristics` (one-to-many)\n\n### 3. `Characteristic`\n\n- `id` (primary key)\n- `name` (string)\n- `meta_data` (JSON) — This field is structured to contain:\n  - `description` (a textual description)\n  - `type` (which can be `boolean`, `integer`, `string`, or any future extension)\n- `characteristic_category_id` (foreign key to `characteristic_categories` table)\n- `Timestamps` (created_at, updated_at)\n\n### 4. Relationships (`Characteristic`)\n\n- `Belongs to CharacteristicCategory` (one-to-many)\n\n## Requirements\n\n### 1. Filament Admin Panel\n\n- Create a Filament resource for `CharacteristicCategories` that allows:\n  - Listing categories\n  - Creating / Editing / Deleting categories\n- Create a Filament resource for `Characteristics` that allows:\n  - Listing characteristics\n  - Creating / Editing / Deleting characteristics\n- Ensure that the `meta_data` field can be managed in a sensible way (e.g., handles `description` and `type` appropriately, including dynamic field types based on `type` selection).\n\n### 2. Front-Facing Page (outside of Filament)\n\n- A route (`/characteristics`) that displays a list of `CharacteristicCategories` and their `Characteristics`.\n- This page uses Tailwind CSS (Laravel 11 + Vite integration).\n- The exact route and controller structure is organized following Laravel best practices.\n\n### 3. General Notes\n\n- The application is built using Laravel 11 and Filament 3.\n- Follows standard Laravel best practices in organizing routes/controllers and overall code structure.\n- Utilizes Tailwind CSS for any necessary styling beyond Filament’s default admin styling.\n- No special styling or layout is required beyond the basics, with some creative enhancements applied.\n\n## Acceptance Criteria\n\n1. `CharacteristicCategories` and `Characteristics` management pages exist in Filament.\n2. Ability to create, edit, and delete records for both resources in the Filament admin.\n3. The `meta_data` (JSON) can handle `description` and `type` values, with `type` influencing the input for `description` (e.g., boolean values as a select, integer as a number input).\n4. A public-facing page (`/characteristics`) shows all categories and the characteristics in each category in a Tailwind-styled layout.\n5. Code is well-structured, easy to understand, and follows Laravel best practices (including Domain-Driven Design principles with Service and Repository layers).\n\n## Getting Started\n\nFollow these steps to set up and run the application locally.\n\n### Prerequisites\n\n- PHP \u003e= 8.2\n- Composer\n- Node.js \u0026 npm (or Yarn)\n- MySQL or other compatible database\n\n### Installation\n\n1. **Clone the repository:**\n\n   ```bash\n   git clone https://github.com/MatviyRoman/Admin-Panel.git\n   cd Admin-Panel\n   ```\n\n   (If you already have the project files, skip cloning and `cd` into your project root.)\n2. **Install PHP dependencies:**\n\n   ```bash\n   composer install\n   ```\n\n   (If you are using `composer.phar` directly, use `php composer.phar install`)\n3. **Configure environment variables:**\n   Copy the `.env.example` file to `.env`:\n\n   ```bash\n   cp .env.example .env\n   ```\n4. **Generate application key:**\n\n   ```bash\n   php artisan key:generate\n   ```\n5. **Database Setup:**\n   Configure your database credentials in the `.env` file (e.g., `DB_DATABASE`, `DB_USERNAME`, `DB_PASSWORD`).\n6. **Run migrations and seed the database:**\n   To create the necessary tables and populate them with initial data (including an admin user and sample characteristics):\n\n   ```bash\n   php artisan migrate:fresh --seed\n   ```\n\n   **WARNING:** `migrate:fresh` will delete all existing tables and data in your configured database. Use `php artisan migrate --seed` if you only want to run new migrations and seed data without deleting existing tables.\n7. **Install Node.js dependencies and compile assets:**\n\n   ```bash\n   npm install\n   npm run dev\n   ```\n\n   Keep `npm run dev` running in a separate terminal window to compile Tailwind CSS and other assets.\n8. **Start the Laravel development server:**\n\n   ```bash\n   php artisan serve\n   ```\n\n## Usage\n\n- **Front-Facing Page:** Access the main application at `http://127.0.0.1:8000/`.\n- **Characteristics Page:** View the list of characteristics at `http://127.0.0.1:8000/characteristics`.\n- **Filament Admin Panel:** Access the admin panel at `http://127.0.0.1:8000/admin`.\n  - **Admin Credentials:**\n    - Email: `roman@matviy.pp.ua`\n    - Password: `password`\n\n## About the Developer\n\nThis project was developed by Roman Matviy.\n\n- **My CV:** [roman.matviy.pp.ua](https://roman.matviy.pp.ua)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatviyroman%2Fadmin-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatviyroman%2Fadmin-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatviyroman%2Fadmin-panel/lists"}