{"id":16175038,"url":"https://github.com/app-generator/laravel-react-purity-dashboard","last_synced_at":"2025-03-19T00:31:05.541Z","repository":{"id":100503137,"uuid":"428328897","full_name":"app-generator/laravel-react-purity-dashboard","owner":"app-generator","description":"React Laravel - Purity Dashboard (Open-Source) | AppSeed","archived":false,"fork":false,"pushed_at":"2022-06-05T13:56:09.000Z","size":2443,"stargazers_count":43,"open_issues_count":0,"forks_count":19,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-11T05:55:53.646Z","etag":null,"topics":["appseed","chakra-ui","laravel","react"],"latest_commit_sha":null,"homepage":"https://appseed.us/product/purity-dashboard/api-server-laravel/react/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/app-generator.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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}},"created_at":"2021-11-15T15:57:40.000Z","updated_at":"2025-02-16T17:27:03.000Z","dependencies_parsed_at":"2023-06-18T11:34:15.866Z","dependency_job_id":null,"html_url":"https://github.com/app-generator/laravel-react-purity-dashboard","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Flaravel-react-purity-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Flaravel-react-purity-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Flaravel-react-purity-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/app-generator%2Flaravel-react-purity-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/app-generator","download_url":"https://codeload.github.com/app-generator/laravel-react-purity-dashboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955700,"owners_count":20374373,"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":["appseed","chakra-ui","laravel","react"],"created_at":"2024-10-10T04:44:01.748Z","updated_at":"2025-03-19T00:31:05.535Z","avatar_url":"https://github.com/app-generator.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [React Laravel Purity Dashboard](https://appseed.us/product/purity-dashboard/api-server-laravel/react/)\n\nOpen-source full-stack seed project that uses a `React UI` powered by a simple `Laravel API Server`. **[Laravel React Purity](https://appseed.us/product/purity-dashboard/api-server-laravel/react/)** sample can be used to bootstrap fast a new project using a tested `development-ready` stack or simply for eLearning purposes by beginners. For newcomers, **React** is a popular Javascript library for coding user interfaces baked by Facebook and **Laravel** is a leading web framework written in PHP. \n\n\u003cbr /\u003e\n\n\u003e Features\n\n- Innovative **Chakra UI** Design - Crafted by [Creative-Tim](https://bit.ly/3fKQZaL)\n- React, Redux, Redux-persist\n- Authentication: JWT Login/Register/Logout\n- Full-stack ready using **[Laravel API Server](https://github.com/app-generator/api-server-laravel)** (open-source project)\n  - Simple, intuitive codebase - can be extended with ease.\n  - Stack: PHP 7.4+ / Laravel 8 / Doctrine\n  - Authentication via [JWT Auth](https://github.com/tymondesigns/jwt-auth) a dedicated library for Laravel and Lumen\n  \n\u003cbr /\u003e\n\n\u003e Links\n\n- 👉 [React Laravel Purity Dashboard](https://appseed.us/product/purity-dashboard/api-server-laravel/react/) - product page\n- 👉 [React Laravel Purity Dashboard](https://laravel-react-purity-dashboard.appseed-srv1.com/#/auth/signin) - LIVE Demo\n- 👉 LIVE [Support](https://appseed.us/support) via [Discord](https://discord.gg/fZC6hup) - provided by AppSeed\n\n\u003cbr /\u003e\n\n![React Laravel Purity Dashboard - Open-source full-stack seed project crafted by Creative-Tim and AppSeed.](https://user-images.githubusercontent.com/51070104/137163880-b117bb7b-daab-45dc-ae88-956cbe966d02.gif)\n\n\u003cbr /\u003e\n\n## General Information\n\nThe product is built using a `two-tier` pattern where the React frontend is decoupled logically and physically from the API backend. In order to use the product in a local environment, a few simple steps are required: \n\n- `Compile and start` the **Laravel API Backend**\n  - be default the server starts on port `5000`\n- `Compile and start` the **React UI**\n  - UI will start on port `3000` and expects a running backend on port `5000`\n- `Configuration` (Optional)\n  - Change the API port\n  - Configure the API port used by the React UI to communicate with the backend \n\n\u003cbr /\u003e\n\n## How to use the product\n\n### Step #1 - Start the Laravel API \n\n```bash\n$ cd laravel-api\n$ \n$ # Install Modules\n$ composer install\n$ cp .env.example .env \n$ php artisan key:generate\n$\n$ # Generate a `secret` key used by JWT Authentication Flow\n$ php artisan jwt:secret\n$ \n$ # Set up the database\n$ touch database/database.sqlite\n$ php artisan migrate\n$\n$ # Start the server\n$ php -S localhost:5000 server.php\n```\n\n\u003cbr /\u003e\n\n![Laravel API Server - Open-source Seed project.](https://user-images.githubusercontent.com/51070104/141784950-b63f71bb-192e-4851-af6b-1b7a99226c9f.jpg)\n\n\u003cbr /\u003e\n\n### Troubleshooting\n\nTo have a successful compilation of this product, make sure you have the following PHP extensions installed and enabled:\n\n- `php-xml` - required by Php-Unit\n- `php7.4-sqlite` - The SQLite driver required by Laravel ORM\n\n```bash\n$ # Php XML - required by Php Unit\n$ sudo apt install php-xml php-cli php-mbstring php7.4-sqlite\n```\n\n\u003cbr /\u003e\n\n### Step #2 - Compile \u0026 start the React UI\n\n```bash\n$ cd react-ui\n$\n$ # Install Modules\n$ yarn\n$\n$ # Start for development (LIVE Reload)\n$ yarn start \n```\n\n\u003cbr /\u003e\n\n### Configuration (Optional)\n\n\u003e Change the port exposed by the Laravel API\n\n```bash\n$ php -S localhost:5001 server.php\n```\n\nNow, the API can be accessed on port `5001`\n\n\u003cbr /\u003e\n\n\u003e Update the API port used by the React Frontend\n\n**API Server URL** - `src/config/constant.js` \n\n```javascript\nconst config = {\n    ...\n    API_SERVER: 'http://localhost:5000/api/'  // \u003c-- The magic line\n};\n```\n\n\u003cbr /\u003e\n\n## API\n\nFor a fast set up, use this POSTMAN file: [api_sample](https://github.com/app-generator/api-unified-definition/blob/main/api.postman_collection.json)\n\n\u003e **Register** - `api/users/register` (**POST** request)\n\n```\nPOST api/users/register\nContent-Type: application/json\n\n{\n    \"username\":\"test\",\n    \"password\":\"pass\", \n    \"email\":\"test@appseed.us\"\n}\n```\n\n\u003cbr /\u003e\n\n\u003e **Login** - `api/users/login` (**POST** request)\n\n```\nPOST /api/users/login\nContent-Type: application/json\n\n{\n    \"password\":\"pass\", \n    \"email\":\"test@appseed.us\"\n}\n```\n\n\u003cbr /\u003e\n\n\u003e **Logout** - `api/users/logout` (**POST** request)\n\n```\nPOST api/users/logout\nContent-Type: application/json\nauthorization: JWT_TOKEN (returned by Login request)\n\n{\n    \"token\":\"JWT_TOKEN\"\n}\n```\n\n\u003cbr /\u003e\n\n## Product UI\n\n\u003e React Laravel Purity Dashboard - User \n\n![React Laravel Purity Dashboard - User.](https://user-images.githubusercontent.com/51070104/141836783-7ae01bb4-4505-4d14-990d-be49a12a8cea.png)\n\n\u003cbr /\u003e\n\n\u003e React Laravel Purity Dashboard - Billing\n\n![React Laravel Purity Dashboard - Billing.](https://user-images.githubusercontent.com/51070104/141836831-2d5c61a4-889b-4c4c-903b-98c2f7c8bdd8.png)\n\n\u003cbr /\u003e\n\n\u003e React Laravel Purity Dashboard - RTL Support\n\n![React Laravel Purity Dashboard - RTL Support.](https://user-images.githubusercontent.com/51070104/141836894-d0339a57-4584-45ed-bd83-53cb0eaa8485.png)\n\n\u003cbr /\u003e\n\n## Links \u0026 Resources\n\n- Ask for [Support](https://appseed.us/support) on [Discord](https://discord.gg/fZC6hup)\n- See for [React Starters](https://appseed.us/apps/react) - index provided by AppSeed\n\n\u003cbr /\u003e\n\n---\n[React Laravel Purity Dashboard](https://appseed.us/product/purity-dashboard/api-server-laravel/react/) - Open-source Seed Project provided by **AppSeed [App Generator](https://appseed.us/)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Flaravel-react-purity-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapp-generator%2Flaravel-react-purity-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapp-generator%2Flaravel-react-purity-dashboard/lists"}