{"id":16465870,"url":"https://github.com/nilanth/laravel-breeze-react","last_synced_at":"2025-03-15T11:33:11.256Z","repository":{"id":115852382,"uuid":"469368800","full_name":"Nilanth/laravel-breeze-react","owner":"Nilanth","description":"Laravel Breeze React is a React application template tailored for Laravel Breeze-based applications, supercharged by Vite","archived":false,"fork":false,"pushed_at":"2024-05-11T13:55:43.000Z","size":644,"stargazers_count":73,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T01:08:53.625Z","etag":null,"topics":["authentication","breeze","create-react-app","laravel","react","sanctum","swr","tailwindcss","vite","vite-react"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Nilanth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":"FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"nilanth"}},"created_at":"2022-03-13T12:45:34.000Z","updated_at":"2025-02-21T18:17:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"8886ca87-cb85-4452-af58-efa71bf09ca9","html_url":"https://github.com/Nilanth/laravel-breeze-react","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nilanth%2Flaravel-breeze-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nilanth%2Flaravel-breeze-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nilanth%2Flaravel-breeze-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nilanth%2Flaravel-breeze-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nilanth","download_url":"https://codeload.github.com/Nilanth/laravel-breeze-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243725047,"owners_count":20337660,"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":["authentication","breeze","create-react-app","laravel","react","sanctum","swr","tailwindcss","vite","vite-react"],"created_at":"2024-10-11T11:35:35.693Z","updated_at":"2025-03-15T11:33:10.875Z","avatar_url":"https://github.com/Nilanth.png","language":"JavaScript","funding_links":["https://github.com/sponsors/nilanth"],"categories":[],"sub_categories":[],"readme":"# Laravel Breeze - React Edition build with Vite\n\n\u003cp align=\"left\"\u003e\n\u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/nilanth/laravel-breeze-react/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/nilanth/laravel-breeze-react.svg?style=flat-square\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Introduction\n\n\u003e Laravel Breeze React is the implementation for react from [breeze-next](https://github.com/laravel/breeze-next). \n\nLaravel Breeze React is an implementation of the [Laravel Breeze](https://laravel.com/docs/starter-kits) authentication template for [React App](https://react.dev). 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 React frontend with a powerful Laravel backend.\n\n## Vite\n\nLaravel Breeze React is now turbocharged with [Vite](https://vitejs.dev/) for rapid compilation and efficient production builds. To know more about Vite check out [this article](https://dev.to/nilanth/use-vite-for-react-apps-instead-of-cra-3pkg).\n\n## Quick Start\n\n### Installation\n\nFirst, create a React App compatible Laravel backend by installing Laravel 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 react-backend\n\ncd react-backend\n\n# Install Breeze and dependencies...\ncomposer require laravel/breeze\n\nphp artisan breeze:install api\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```\nVITE_APP_BACKEND_URL=http://localhost:8000\n```\n\nFinally, run the application via `yarn start`. The application will be available at `http://localhost:3000`:\n\n```\nyarn start --host localhost --port 3000\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 Hook\n\nThis Create React application contains a custom `useAuth` React hook, designed to abstract all authentication logic away from your pages. In addition, the hook can be used to access the currently authenticated user:\n\n```js\nconst Dashboard = () =\u003e {\n    const { logout, user } = useAuth({ middleware: 'auth' })\n\n    return (\n        \u003c\u003e\n            \u003cp\u003e{user?.name}\u003c/p\u003e\n\n            \u003cbutton onClick={logout}\u003eSign out\u003c/button\u003e\n        \u003c/\u003e\n    )\n}\n\nexport default Dashboard\n```\n\n## Built with\n\n- [React 18](https://reactjs.org)\n- [Vite](https://vitejs.dev/)\n- [React Router v6](https://reactrouter.com): Routing for React\n- [Tailwind](https://tailwindcss.com): for UI\n- [SWR](https://swr.vercel.app/): React Hooks for Data Fetching\n- [Axios](https://www.npmjs.com/package/axios): Promise based HTTP client for the browser and node.js\n- [Headlessui/react](https://headlessui.dev): for UI Components\n- [Vercel](http://vercel.com): for hosting\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](.github/SECURITY.md) on how to report security vulnerabilities.\n\n## Credits\n-   [Nilanth](https://github.com/nilanth)\n-   [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n\n## Deploy\n\n\u003ca href=\"https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FNilanth%2Flaravel-breeze-react\"\u003e\u003cimg src=\"https://vercel.com/button\" alt=\"Deploy with Vercel\" height=\"37.5px\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://app.netlify.com/start/deploy?repository=https://github.com/Nilanth/laravel-breeze-react\"\u003e\n\u003cimg src=\"https://www.netlify.com/img/deploy/button.svg\" height=\"37.5px\" /\u003e\n\u003c/a\u003e\n\n## Support\n\nLaravel Breeze React needs a ⭐️ from you. Don't forget to leave a star ⭐️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilanth%2Flaravel-breeze-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilanth%2Flaravel-breeze-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilanth%2Flaravel-breeze-react/lists"}