{"id":21133464,"url":"https://github.com/sheitak/hackathon-halloween-2019","last_synced_at":"2025-03-14T12:29:28.491Z","repository":{"id":110785559,"uuid":"221041400","full_name":"Sheitak/hackathon-halloween-2019","owner":"Sheitak","description":"2019 Hackathon Project : Which monster suits you the most ?","archived":false,"fork":false,"pushed_at":"2023-07-04T09:57:40.000Z","size":5481,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T06:26:29.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sheitak.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}},"created_at":"2019-11-11T18:12:16.000Z","updated_at":"2023-07-04T09:57:46.000Z","dependencies_parsed_at":"2025-01-21T06:34:36.148Z","dependency_job_id":null,"html_url":"https://github.com/Sheitak/hackathon-halloween-2019","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheitak%2Fhackathon-halloween-2019","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheitak%2Fhackathon-halloween-2019/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheitak%2Fhackathon-halloween-2019/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sheitak%2Fhackathon-halloween-2019/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sheitak","download_url":"https://codeload.github.com/Sheitak/hackathon-halloween-2019/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243576983,"owners_count":20313532,"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","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":"2024-11-20T06:10:15.739Z","updated_at":"2025-03-14T12:29:28.471Z","avatar_url":"https://github.com/Sheitak.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple MVC\n\n## Description\n\nThis repository is a simple PHP MVC structure from scratch.\n\nIt uses some cool vendors/libraries such as Twig and Grumphp.\nFor this one, just a simple example where users can choose one of their databases and see tables in it.\n\n## Steps\n\n1. Clone the repo from Github.\n2. Run `composer install`.\n3. Create _config/db.php_ from _config/db.php.dist_ file and add your DB parameters. Don't delete the _.dist_ file, it must be kept.\n\n```php\ndefine('APP_DB_HOST', 'your_db_host');\ndefine('APP_DB_NAME', 'your_db_name');\ndefine('APP_DB_USER', 'your_db_user_wich_is_not_root');\ndefine('APP_DB_PWD', 'your_db_password');\n```\n\n4. Import `simple-mvc.sql` in your SQL server,\n5. Run the internal PHP webserver with `php -S localhost:8000 -t public/`. The option `-t` with `public` as parameter means your localhost will target the `/public` folder.\n6. Go to `localhost:8000` with your favorite browser.\n7. From this starter kit, create your own web application.\n\n### Windows Users\n\nIf you develop on Windows, you should edit you git configuration to change your end of line rules with this command :\n\n`git config --global core.autocrlf true`\n\n## URLs availables\n\n- Home page at [localhost:8000/](localhost:8000/)\n- Items list at [localhost:8000/item/index](localhost:8000/item/index)\n- Item details [localhost:8000/item/index/show/:id](localhost:8000/item/show/2)\n- Item edit [localhost:8000/item/index/edit/:id](localhost:8000/item/edit/2)\n- Item add [localhost:8000/item/index/add](localhost:8000/item/add)\n- Item deletion [localhost:8000/item/index/delete/:id](localhost:8000/item/delete/2)\n\n## How does URL routing work ?\n\n![Simple MVC.png](https://raw.githubusercontent.com/WildCodeSchool/simple-mvc/master/Simple%20-%20MVC.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheitak%2Fhackathon-halloween-2019","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheitak%2Fhackathon-halloween-2019","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheitak%2Fhackathon-halloween-2019/lists"}