{"id":28402731,"url":"https://github.com/d-vale/simulation-center","last_synced_at":"2025-08-18T20:45:39.260Z","repository":{"id":290343487,"uuid":"974086656","full_name":"d-vale/Simulation-center","owner":"d-vale","description":"As part of a course at HEIG-VD, we had a project with the goal of creating a monolithic application with a Laravel backend and a Vue frontend","archived":false,"fork":false,"pushed_at":"2025-05-18T14:55:23.000Z","size":15705,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T17:51:44.059Z","etag":null,"topics":["api","dynamic","laravel","laravel12","monolithic-architecture","reactive","restfull-api","vue","vuejs"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/d-vale.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-04-28T08:33:13.000Z","updated_at":"2025-05-18T14:55:26.000Z","dependencies_parsed_at":"2025-04-28T10:43:45.687Z","dependency_job_id":"52765991-5027-4733-b924-3c6d6a1316c4","html_url":"https://github.com/d-vale/Simulation-center","commit_stats":null,"previous_names":["d-vale/fullstack.app","d-vale/simulation-center"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/d-vale/Simulation-center","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-vale%2FSimulation-center","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-vale%2FSimulation-center/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-vale%2FSimulation-center/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-vale%2FSimulation-center/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d-vale","download_url":"https://codeload.github.com/d-vale/Simulation-center/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d-vale%2FSimulation-center/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271059731,"owners_count":24692425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","dynamic","laravel","laravel12","monolithic-architecture","reactive","restfull-api","vue","vuejs"],"created_at":"2025-06-01T16:08:15.099Z","updated_at":"2025-08-18T20:45:39.230Z","avatar_url":"https://github.com/d-vale.png","language":"PHP","readme":"# Crisis Management Simulator\n\nA web-based crisis management simulator where users make critical decisions during a cyberattack on national infrastructure. The application tracks key metrics like public trust, available resources, social impact, and crisis progression.\n\n## Project Structure\n\nThis project is built with:\n\n-   **Backend**: Laravel (API)\n-   **Frontend**: Vue.js\n-   **Database**: SQLite\n\n## Features\n\n-   Interactive crisis scenario with multiple chapters\n-   Decision-based gameplay with real-time consequence tracking\n-   Key metric monitoring (public trust, resources, social impact, and crisis level)\n-   Multiple possible endings based on player decisions\n-   Progress saving\n-   Responsive design for mobile and desktop\n-   User authentication\n\n## Key Metrics\n\n-   **Public Trust** (0-100%): Represents population's confidence in your leadership\n-   **Available Resources** (0+): Represents remaining crisis management resources\n-   **Social Impact** (0-100%): Represents the severity of societal disruption\n-   **Crisis Progress** (0-100%): Represents how far the crisis has progressed (lower is better)\n\n## API Endpoints\n\n### Chapters\n\n-   `GET /v1/chapters` - Get all chapters\n-   `GET /v1/chapters/first` - Get the first chapter (entry point)\n-   `GET /v1/chapters/endings` - Get all possible ending chapters\n-   `GET /v1/chapters/{id}` - Get a specific chapter\n-   `GET /v1/chapters/{chapterId}/choices` - Get all choices for a chapter\n\n### Choices\n\n-   `GET /v1/choices/{id}` - Get a specific choice\n-   `GET /v1/choices/{choiceId}/impacts` - Get all impacts for a choice\n-   `GET /v1/choices/{choiceId}/next-chapter` - Get the next chapter for a choice\n\n### Progress (Authentication Required)\n\n-   `GET /v1/progress` - Get the current user's progress\n-   `PATCH /v1/progress/update` - Update progress based on a choice\n-   `PATCH /v1/progress/reset` - Reset the user's progress\n\n### Admin (Authentication and Admin Required)\n\n-   `GET /v1/admin/users/{userId}/progress` - Get a specific user's progress\n\n## Installation\n\n### Prerequisites\n\n-   PHP 8.1 or higher\n-   Composer\n-   Node.js and npm\n-   SQLite\n\n### Setup\n\n1. Clone the repository:\n\n    ```\n    git clone https://github.com/d-vale/Simulation-center.git\n    cd Simulation-center\n    ```\n\n2. Install PHP dependencies:\n\n    ```\n    composer install\n    ```\n\n3. Install JavaScript dependencies:\n\n    ```\n    npm install\n    ```\n\n4. Create a copy of the `.env.example` file:\n\n    ```\n    cp .env.example .env\n    ```\n\n5. Generate an application key:\n\n    ```\n    php artisan key:generate\n    ```\n\n6. Create the SQLite database:\n\n    ```\n    touch database/database.sqlite\n    ```\n\n7. Configure the `.env` file to use SQLite:\n\n    ```\n    DB_CONNECTION=sqlite\n    # Comment out or remove the other DB_ variables\n    ```\n\n8. Run migrations and seeders:\n\n    ```\n    php artisan migrate --seed\n    ```\n\n9. Build frontend assets:\n\n    ```\n    npm run build\n    ```\n\n10. Start the development server:\n\n    ```\n    composer run dev\n    ```\n\n11. Access the application at `http://localhost:8000`\n\n## Test Accounts\n\nTwo test accounts are created by default when running the seeders:\n\n### Admin Account:\n- **Email**: admin@example.com\n- **Password**: password\n\n### Regular User Account:\n- **Email**: user@example.com\n- **Password**: password\n\nUse these credentials to test the application without needing to register new accounts.\n\n## License\n\nThis project is licensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-vale%2Fsimulation-center","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd-vale%2Fsimulation-center","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd-vale%2Fsimulation-center/lists"}