{"id":17472347,"url":"https://github.com/verwilst/laravel5-vuejs2","last_synced_at":"2025-04-22T10:19:49.247Z","repository":{"id":258259116,"uuid":"73271553","full_name":"verwilst/laravel5-vuejs2","owner":"verwilst","description":"Laravel 5.4 scaffold, with working Vue.js 2 single-page frontend. Dingo/api, JWT and Swagger included.","archived":false,"fork":false,"pushed_at":"2017-04-20T09:23:58.000Z","size":888,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-10-18T07:00:41.777Z","etag":null,"topics":["dingo-api","jwt","laravel54","swagger-php","vuejs2"],"latest_commit_sha":null,"homepage":"","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/verwilst.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-11-09T09:57:02.000Z","updated_at":"2020-10-02T04:01:39.000Z","dependencies_parsed_at":"2024-10-18T07:16:25.868Z","dependency_job_id":null,"html_url":"https://github.com/verwilst/laravel5-vuejs2","commit_stats":null,"previous_names":["verwilst/laravel5-vuejs2"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verwilst%2Flaravel5-vuejs2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verwilst%2Flaravel5-vuejs2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verwilst%2Flaravel5-vuejs2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/verwilst%2Flaravel5-vuejs2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/verwilst","download_url":"https://codeload.github.com/verwilst/laravel5-vuejs2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250221261,"owners_count":21394680,"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":["dingo-api","jwt","laravel54","swagger-php","vuejs2"],"created_at":"2024-10-18T17:08:10.912Z","updated_at":"2025-04-22T10:19:49.210Z","avatar_url":"https://github.com/verwilst.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Initial setup\n\nGo into the webroot.\n\n\u003e docker run -it --rm -v $(pwd):/app -w /app verwilst/npm install\n\n\u003e docker run -it --rm -v $(pwd):/app -w /app verwilst/php7-cli composer install\n\n\u003e cp -f .env.example .env\n\n\u003e docker run -it --rm -v $(pwd):/app -w /app verwilst/php7-cli php artisan key:generate\n\n\u003e docker run -it --rm -v $(pwd):/app -w /app verwilst/php7-cli php artisan jwt:secret\n\n\u003e docker run -it --rm -v $(pwd):/app -w /app verwilst/php7-cli php artisan l5-swagger:publish-assets\n\nMake sure to chown all the data in your webroot to your own user, since docker sets ownership to added files to root.\n\n\u003e sudo chown $(id -un): . -R\n\n## How to run\n\n### Initial steps\n\n\u003e docker run --name myproject -it -d -v $(pwd):/app -w /app verwilst/php7-cli php artisan serve --host=0.0.0.0\n\n\nThe project is configured with Browsersync. Gulp watch creates a proxy that points to our myproject container, so we need to link to it. \nThis also compiles app.css and app.js under public/{css,js}:\n\n\u003e docker run --name myproject-watch -it -d -v $(pwd):/app --link myproject:web -p 3000:3000 -w /app verwilst/npm run watch\n\nThe proxy listens on port 3000.\n\n### Starting an existing app\n\n\u003e docker start mongo percona myproject myproject-watch\n\n( Leaving off mongo and/or percona if you didn't create those docker containers ofcourse. )\n\nYou can now open your browser on http://127.0.0.1:3000 .\n\n## When MongoDB is needed\n\n\u003e docker run --name mongo -d mongo\n\n\u003e docker run --name myproject -it -d --link mongo:mongo -v $(pwd):/app -w /app verwilst/php7-cli php artisan serve --host=0.0.0.0\n\nUsing the MongoDB console is as easy as calling:\n\n\u003e docker exec -it mongo mongo admin\n\nIn your app (.env, ... ), use 'mongo' as hostname for the Mongo server.\n\n## When MySQL/Percona is needed\n\n\u003e docker run --name percona -e MYSQL_ALLOW_EMPTY_PASSWORD=true -d percona\n\n\u003e docker run --name myproject -it -d --link percona:percona -v $(pwd):/app -w /app verwilst/php7-cli php artisan serve --host=0.0.0.0\n\nUsing the MySQL console is as easy as calling:\n\n\u003e docker exec -it percona mysql\n\nIn your app (.env, ... ), use 'percona' as hostname for the MySQL server.\n\n## API-only application\n\nIf you're using this project to build an API without a Vue.js frontend, you might be better off by not starting the myproject-watch container, but opening port 8000 on the 'myproject' container by adding -p 8000:8000, and browsing to http://127.0.0.1:8000 instead. That stops browsersync from constantly reloading /api/documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverwilst%2Flaravel5-vuejs2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverwilst%2Flaravel5-vuejs2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverwilst%2Flaravel5-vuejs2/lists"}