{"id":19052429,"url":"https://github.com/amdad121/breeze-api-nuxt","last_synced_at":"2025-06-29T22:33:57.050Z","repository":{"id":178854162,"uuid":"662448806","full_name":"amdad121/breeze-api-nuxt","owner":"amdad121","description":"Laravel Breeze \u0026 Nuxt 3 Starter Template ","archived":false,"fork":false,"pushed_at":"2024-07-13T18:03:58.000Z","size":213,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-24T02:45:23.750Z","etag":null,"topics":["api","breeze","laravel","nuxt"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/amdad121.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":"2023-07-05T06:56:26.000Z","updated_at":"2024-11-08T18:38:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"42b0b420-ad92-4ea3-9229-ab40f1996f4e","html_url":"https://github.com/amdad121/breeze-api-nuxt","commit_stats":null,"previous_names":["amdad121/breeze-api-nuxt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amdad121/breeze-api-nuxt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdad121%2Fbreeze-api-nuxt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdad121%2Fbreeze-api-nuxt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdad121%2Fbreeze-api-nuxt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdad121%2Fbreeze-api-nuxt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amdad121","download_url":"https://codeload.github.com/amdad121/breeze-api-nuxt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amdad121%2Fbreeze-api-nuxt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262678522,"owners_count":23347380,"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":["api","breeze","laravel","nuxt"],"created_at":"2024-11-08T23:26:22.732Z","updated_at":"2025-06-29T22:33:57.009Z","avatar_url":"https://github.com/amdad121.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel API Breeze - Nuxt 3 Edition 🏝️\n\n## Introduction\n\nThis repository is an implementation of the [Laravel API Breeze](https://laravel.com/docs/starter-kits) application / authentication starter kit frontend in [Nuxt](https://nuxt.com). All of the authentication boilerplate is already written for you - powered by [Laravel Sanctum](https://laravel.com/docs/sanctum), allowing you to quickly begin pairing your beautiful Nuxt frontend with a powerful Laravel backend.\n\n## Official Documentation\n\n### Installation\n\nFirst, create a Nuxt compatible Laravel backend by installing Laravel API Breeze into a [fresh Laravel application](https://laravel.com/docs/installation) and installing Breeze's API scaffolding:\n\n```bash\n# Create the Laravel application...\nlaravel new nuxt-backend\n\ncd nuxt-backend\n\n# Install Breeze and dependencies...\ncomposer require laravel/breeze --dev\n\nphp artisan breeze:install api\n\n# Run database migrations...\nphp artisan migrate\n```\n\nNext, ensure that your application's `APP_URL` and `FRONTEND_URL` environment variables are set to `http://localhost:8000` and `http://localhost:3000`, respectively.\n\nAfter defining the appropriate environment variables, you may serve the Laravel application using the `serve` Artisan command:\n\n```bash\n# Serve the application...\nphp artisan serve\n```\n\nNext, clone this repository and install its dependencies with `yarn install` or `npm install`. Then, copy the `.env.example` file to `.env` and supply the URL of your backend:\n\n```\nNUXT_PUBLIC_BACKEND_URL=http://localhost:8000\n```\n\nFinally, run the application via `npm run dev`. The application will be available at `http://localhost:3000`:\n\n```\nnpm run dev\n```\n\n\u003e Note: Currently, we recommend using `localhost` during local development of your backend and frontend to avoid CORS \"Same-Origin\" issues.\n\n### Authentication Middleware\n\nThis Nuxt application contains a custom `auth` middleware, designed to abstract all authentication logic away from your pages. In addition, the middleware can be used to access the currently authenticated user:\n\n```js\n// ExamplePage.vue\n\u003cscript lang=\"ts\" setup\u003e\ndefinePageMeta({\n  middleware: ['auth'],\n});\n\nconst { user, logout } = useAuthStore();\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cp\u003e{{ user?.name }}\u003c/p\u003e\n\n    \u003cbutton @click=\"logout()\"\u003eSign out\u003c/button\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cstyle scoped\u003e\u003c/style\u003e\n```\n\n\u003e Note: You will need to use [optional chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) (`user?.name` instead of `user.name`) when accessing properties on the user object to account for Nuxt's initial server-side render.\n\n## Contributing\n\nContribution is open. Create Pull-request and I'll add it to the project if it's good enough.\n\n## License\n\nLaravel API Breeze Nuxt 3 is open-sourced software licensed under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdad121%2Fbreeze-api-nuxt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famdad121%2Fbreeze-api-nuxt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famdad121%2Fbreeze-api-nuxt/lists"}