{"id":19022557,"url":"https://github.com/envor/one-app","last_synced_at":"2025-07-29T17:17:43.983Z","repository":{"id":224293721,"uuid":"761975045","full_name":"envor/one-app","owner":"envor","description":"Database per team starter kit for Laravel based on Laravel Jetstream and Livewire","archived":false,"fork":false,"pushed_at":"2024-12-19T15:54:26.000Z","size":228,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T22:10:03.511Z","etag":null,"topics":["database","framework","laravel","mysql","oauth2","oauth2-server","sqlite","sso","starter-kit","teams"],"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/envor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","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":"2024-02-22T20:54:46.000Z","updated_at":"2024-12-19T15:54:30.000Z","dependencies_parsed_at":"2024-06-22T12:59:46.129Z","dependency_job_id":"5a233447-a1b0-44b0-8504-df121c8e7447","html_url":"https://github.com/envor/one-app","commit_stats":null,"previous_names":["envor/one-app"],"tags_count":33,"template":false,"template_full_name":"spatie/package-skeleton-laravel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envor%2Fone-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envor%2Fone-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envor%2Fone-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/envor%2Fone-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/envor","download_url":"https://codeload.github.com/envor/one-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250395978,"owners_count":21423523,"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":["database","framework","laravel","mysql","oauth2","oauth2-server","sqlite","sso","starter-kit","teams"],"created_at":"2024-11-08T20:26:42.619Z","updated_at":"2025-04-23T08:21:53.065Z","avatar_url":"https://github.com/envor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# There is this one-app ... \n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/envor/one-app.svg?style=flat-square)](https://packagist.org/packages/envor/one-app)\n[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/envor/one-app/run-tests.yml?branch=main\u0026label=tests\u0026style=flat-square)](https://github.com/envor/one-app/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/envor/one-app/fix-php-code-style-issues.yml?branch=main\u0026label=code%20style\u0026style=flat-square)](https://github.com/envor/one-app/actions?query=workflow%3A\"Fix+PHP+code+style+issues\"+branch%3Amain)\n[![Total Downloads](https://img.shields.io/packagist/dt/envor/one-app.svg?style=flat-square)](https://packagist.org/packages/envor/one-app)\n\nDatabase per team starter kit for Laravel based on Laravel Jetstream and Livewire\n\n## Installation\n\nFirst set up a fresh laravel app:\n\n### Using laravel installer\n\n```bash\nlaravel new one-app\n```\n\n### Or using composer\n\n```bash\ncomposer create-project \"laravel/laravel:^11.0\" one-app\n```\n\n```bash\ncd one-app\n```\n\nThen you can install the package via composer:\n\n```bash\ncomposer require envor/one-app\n```\n\n```bash\nphp artisan one-app:install\n```\n\nTo Configure your platform database (aka `central` or `landlord` database, etc..)\n\nAdd the following key to your `.env` file:\n\n```ini\nPLATFORM_DB_CONNECTION=sqlite\n```\n\n\u003e [!NOTE]  \n\u003e If you use a connection other than sqlite, you will have to ensure you have configured you credentials for the connection\n\u003e\n\nNext, freshen your migrations, using the `database/migration/platform` path, and the name of your `PLATFORM_DB_CONNECTION`\n\n```bash\nphp artisan migrate:fresh --path=database/migrations/platform --database=sqlite\n```\n\nYou can now test your application to ensure everything is working properly!\n\n```bash\nphp artisan test\n```\n\n## SSO (Optional)\n\nIf you need it you can set up `one-app` to use `laravel/passport` instead of `laravel/sanctum` which will include a full OAuth2 Server, complete with self-service token and client management ui.\n\nFirst follow the steps above to install one-app.\n\nNext install headerx/laravel-jetstream-passport\n\n```bash\ncomposer require headerx/laravel-jetstream-passport:^1.0\n```\n\u003e [!IMPORTANT]  \n\u003e Do not run the `jetstream-passport:install` command from [headerx/laravel-jetstream-passport](https://github.com/headerx/laravel-jetstream-passport) when setting up `one-app`! `one-app` has its own command for installing `passport` (shown below).\n\nThen run `one-app:passport` command\n\n```bash\nphp artisan one-app:passport\n```\n\nThen run migrations\n\n```bash\nphp artisan migrate --path=\"database/migrations/platform\" --database=\"sqlite\"\n```\n\nThen run tests again!\n\n## Testing\n\n```bash\nphp artisan test\n```\n\nor\n\n```bash\ncomposer test\n```\n\n## Development\n\nThis thing installs stuff. During development the stubs will have to be tested. What follows are instructions for doing so.\n\nrequirements:\n\n- php ^8.2\n  - extensions\n    - see https://laravel.com/docs/master/deployment#server-requirements\n- composer\n- basic working knowledge of git\n\n### 1. Setup Laravel Environment in an empty directory\n\n```bash\ncomposer create-project laravel/laravel:11.x-dev .\ncomposer require laravel/jetstream:@dev --no-interaction --no-update\ncomposer require envor/one-app:@dev --no-interaction --no-update\ncomposer config repositories.one-app '{\"type\": \"path\", \"url\": \"one-app\"}' --file composer.json\n```\n\n```bash\necho \"PLATFORM_DB_CONNECTION=sqlite\" \u003e\u003e .env\n```\n\n```bash\necho \"one-app/\" \u003e\u003e .gitignore\n```\n\n```bash\ngit add . \u0026\u0026 git commit -m \"setup testing environment\"\n```\n\n### 2. Clone the repo\n\nSSH\n\n```bash\ngit clone git@github.com:envor/one-app.git\n```\n\nHTTPS\n\n```bash\ngit clone https://github.com/envor/one-app.git\n```\n\n### 3. Install dependencies (in root working directory, not one-app)\n\n```bash\ncomposer update \"laravel/jetstream\" --prefer-dist --no-interaction --no-progress -W\n```\n\n### 4. Install one-app (in root working directory, not one-app)\n\n```bash\ncomposer update \"envor/one-app\" --prefer-dist --no-interaction --no-progress -W\n```\n\n```bash\nphp artisan one-app:install -v\n```\n\n### 5. Install npm dependencies (in root working directory, not one-app)\n\n```bash\nnpm install\n```\n\n### 6. Compile Assets (in root working directory, not one-app)\n\n```bash\nnpm run build\n```\n\n### 7. Execute tests (in root working directory, not one-app)\n\n```bash\nphp artisan test\n```\n\n### 8. If you are green, you are good to go. You can now reset your environment to begin making changes.\n\n```bash\ngit reset --hard \u0026\u0026 git clean -df\n```\n\n```bash\ncomposer install\n```\n\n### 9. Make your changes\n\nEdit files in `one-app/` directory\n\n### 10. Test your changes by repeating steps 3-7.\n### 11. Repeat steps 8-10\n### 12. Repeat step 11 as many times as needed.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [inmanturbo](https://github.com/envor)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvor%2Fone-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenvor%2Fone-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenvor%2Fone-app/lists"}