{"id":21703932,"url":"https://github.com/shinokada/backpack_install","last_synced_at":"2025-04-12T15:13:33.261Z","repository":{"id":49990884,"uuid":"364405876","full_name":"shinokada/backpack_install","owner":"shinokada","description":"Bash script to install all Backpack for Laravel modules from your terminal.","archived":false,"fork":false,"pushed_at":"2021-06-29T03:18:45.000Z","size":25759,"stargazers_count":12,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T15:13:15.872Z","etag":null,"topics":["bash-script","laravel"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/shinokada.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-04T22:49:16.000Z","updated_at":"2024-05-03T10:27:12.000Z","dependencies_parsed_at":"2022-08-29T19:50:40.090Z","dependency_job_id":null,"html_url":"https://github.com/shinokada/backpack_install","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinokada%2Fbackpack_install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinokada%2Fbackpack_install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinokada%2Fbackpack_install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinokada%2Fbackpack_install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinokada","download_url":"https://codeload.github.com/shinokada/backpack_install/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248586244,"owners_count":21128998,"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":["bash-script","laravel"],"created_at":"2024-11-25T21:36:46.607Z","updated_at":"2025-04-12T15:13:33.241Z","avatar_url":"https://github.com/shinokada.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg width=\"400\" src=\"https://raw.githubusercontent.com/shinokada/backpack_install/main/images/backpack-install.png\" /\u003e\n\u003c/p\u003e\n\u003ch1  align=\"center\"\u003eBackpack Installer for macOS/Linux\u003c/h1\u003e\n\n## Overview\n\nThis script automates to install all [Backpack for Laravel modules](https://backpackforlaravel.com/docs/4.1/installation) from your terminal.\n\nTested on macOS and it should work on Linux.\n\nInstalls BackupManager, LogManager, Settings, PageManager, PermissionManager, MenuCrud, and NewsCrud.\n\n[Medium Article](https://codeburst.io/installing-backpack-for-laravel-modules-with-a-line-of-command-eda01d72639f)\n\n## Requirement\n\nUNIX-lie (Tested on Ubuntu and MacOS.)\n\n## Installation\n\n### macOS\n\n```sh\nbrew tap shinokada/backpack_install\nbrew install backpack_install\n```\n\n### Using Awesome Package Manager for Linux\n\nAfter installing [awesome script package manager](https://github.com/shinokada/awesome):\n\n```sh\nawesome -i shinokada/backpack_install\nbackpack_install -v\n```\n\n## Set up\n\n1. Install Laravel\n\n   ```sh\n   composer create-project laravel/laravel myproject\n   ```\n\n2. Update .env file.\n\n   If you are using MAMP:\n\n   ```sh\n   ...\n   DB_CONNECTION=mysql\n   DB_HOST=127.0.0.1\n   DB_PORT=8889\n   DB_DATABASE=example_app\n   DB_USERNAME=root\n   DB_PASSWORD=root\n   ...\n   ```\n\n3. (Optional) Start Laravel\n\n   ```sh\n   php artisan serve\n   ```\n\n## Usage\n\n```sh\n# Install all modules at once\ncomposer create-project laravel/laravel myproject\ncd myproject\nbackpack_install\n\n# Install one by one\nbackpack_install -p\n\n# If you want to set dir\nbackpack_install -d /path/to/myproject\n\n\n# Uninstall all modules\nbackpack_install -u\n# or with -d\nbackpack_install -u -d /path/to/laravel/project\n\n# get help\nbackpack_install -h\n\n# get version\nbackpack_install -v\n```\n\n## After installation\n\nStart Laravel.\n\n```sh\nphp artisan serve\n```\n\nVisit http://127.0.0.1:8000/admin/login or http://127.0.0.1/admin/login depending the port you are using.\n\n\n- You need to configure [BackupManager optional](https://github.com/Laravel-Backpack/BackupManager#install).\n\n- Add `Spatie\\Permission\\Traits\\HasRoles` trait to your User model(s). See more on [For PermissionManager](https://github.com/Laravel-Backpack/PermissionManager#install).\n\n## After uninstallation\n\nAfter running uninstallation using `-u` flag, you are recommended to run `git reset` and `git clean`.\n\n```sh\ncd $laravel_dir\ngit reset --hard\ngit clean -f -d\n```\n\nClean your database.\n\n## Troubleshooting\n\n`backpack_install` files must be executable.\n\n```teminal\nchmod u+x backpack_install\nchmod -R u+x lib\n```\n\n## Author\n\nShinichi Okada\n\n## License\n\nMIT License\n\nCopyright (c) 2021 Shinichi Okada\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinokada%2Fbackpack_install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinokada%2Fbackpack_install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinokada%2Fbackpack_install/lists"}