{"id":17989540,"url":"https://github.com/evilfreelancer/laravel-lighthouse-example","last_synced_at":"2025-03-25T23:30:47.465Z","repository":{"id":47480327,"uuid":"300124949","full_name":"EvilFreelancer/laravel-lighthouse-example","owner":"EvilFreelancer","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-01T05:23:56.000Z","size":310,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T22:09:51.932Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvilFreelancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-01T03:10:11.000Z","updated_at":"2025-02-06T15:00:15.000Z","dependencies_parsed_at":"2022-07-26T16:31:58.693Z","dependency_job_id":null,"html_url":"https://github.com/EvilFreelancer/laravel-lighthouse-example","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/EvilFreelancer%2Flaravel-lighthouse-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Flaravel-lighthouse-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Flaravel-lighthouse-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvilFreelancer%2Flaravel-lighthouse-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvilFreelancer","download_url":"https://codeload.github.com/EvilFreelancer/laravel-lighthouse-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245561156,"owners_count":20635683,"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-10-29T19:14:54.596Z","updated_at":"2025-03-25T23:30:44.257Z","avatar_url":"https://github.com/EvilFreelancer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel + GraphQL (Lighthouse PHP) demo application\n\nThis application based on Docker containers, here is the list:\n\n* mariadb - Database server\n* phpmyadmin - For management of MySQL\n* laravel - Login pages, API and VueJS\n\n## How to install\n\n### 1. Preparation\n\nClone the repo and change your work directory to root of sources\n\n```shell\ngit clone https://github.com/EvilFreelancer/laravel-lighthouse-example.git\ncd laravel-lighthouse-example\ncp docker-compose.dist.yml docker-compose.yml\ncd laravel\ncp .env.example .env\nconposer install\ncd ..\n```\n\nIn file `docker-compose.yml` you probably will need the change a values to ones you\nneed, for example you don't need to run this project on `80` port, to\nfix that just change line like `80:80` to required values, eg. `7777:80`.\n\nRun first iteration of Docker environment:\n\n```shell\ndocker-compose up -d\n```\n\n### 2. Inside container\n\nNeed to login into the Laravel container:\n\n```shell\ndocker-compose exec laravel bash\n```\n\nAnd fix permissions on a few important folders:\n\n```shell\nchown apache:apache {bootstrap,storage,vendor} -R\n```\n\nThen exit from container:\n\n```shell\nexit\n```\n\n### 3. Finish\n\nLogin into container\n\n```shell\ndocker-compose exec laravel bash\n```\n\nCreate database and seed tables\n\n```shell\nphp artisan migrate\nphp artisan db:seed\n```\n\nThen exit from container:\n\n```shell\nexit\n```\n\n## The End\n\nNow you just need open following page http://localhost/graphql-playgroud in your browser.\n\nThanks for reading!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Flaravel-lighthouse-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilfreelancer%2Flaravel-lighthouse-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilfreelancer%2Flaravel-lighthouse-example/lists"}