{"id":25383045,"url":"https://github.com/mislam/laravel-vite","last_synced_at":"2025-04-09T14:16:02.137Z","repository":{"id":72351385,"uuid":"470862325","full_name":"mislam/laravel-vite","owner":"mislam","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-23T15:58:04.000Z","size":692,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T07:53:18.252Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mislam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-03-17T05:39:42.000Z","updated_at":"2022-03-17T05:41:38.000Z","dependencies_parsed_at":"2023-02-28T08:16:05.368Z","dependency_job_id":null,"html_url":"https://github.com/mislam/laravel-vite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislam%2Flaravel-vite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislam%2Flaravel-vite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislam%2Flaravel-vite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislam%2Flaravel-vite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mislam","download_url":"https://codeload.github.com/mislam/laravel-vite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054194,"owners_count":21039952,"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":[],"created_at":"2025-02-15T07:53:18.166Z","updated_at":"2025-04-09T14:16:02.128Z","avatar_url":"https://github.com/mislam.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Vite\n\nCombine the power of [Laravel](https://laravel.com/) and [Vite](https://vitejs.dev/) alongside [Vue 3](https://vuejs.org/) and [Tailwind CSS](https://tailwindcss.com/).\n\n## Application Stack\n\n-  PHP 8.1\n-  MySQL 8.0\n-  Laravel 9.x\n-  Vite 2\n-  Vue 3\n-  Tailwind CSS 3\n\n## Setup Dev Environment\n\nWe will be running Laravel in a Docker development environment using [Laravel Sail](https://laravel.com/docs/sail). Although running PHP directly on your computer (host) is not a requirement, we still need it to install Sail for the first time.\n\nIf you're on macOS, you can install PHP using [Homebrew](https://brew.sh/):\n\n```\nbrew install php\n```\n\nClone this repo:\n\n```\ngit clone git@github.com:mislam/laravel-vite.git my-awesome-project\ncd my-awesome-project\n```\n\nInstall Sail:\n\n```\ncomposer require laravel/sail --dev\n```\n\nAdd a new line in your `~/.bashrc` or `~/.bash_profile` to create an alias (shortcut) to the sail command :\n\n```\nalias sail='[ -f sail ] \u0026\u0026 bash sail || bash vendor/bin/sail'\n```\n\nMake a copy of the local `.env` file and generate encryption key:\n\n```\ncp .env.local.example .env\nphp artisan key:generate\n```\n\nStart all of the Docker containers defined in `docker-compose.yml`:\n\n```\nsail up -d\n```\n\nRun database migrations:\n\n```\nsail php artisan migrate\n```\n\nInstall NPM dependencies and run Vite's dev server:\n\n```\nnpm install\nnpm run dev\n```\n\nNow head over to your browser and open http://localhost.\n\n## Deployment\n\n### VPS Server\n\nYou can use [Laravel Forge](https://forge.laravel.com) to deploy the application on a VPS server, such as: [DigitalOcean Droplets](https://www.digitalocean.com/products/droplets) or [Amazon EC2](https://aws.amazon.com/ec2).\n\n### Cloud\n\nIf you have scalibility in mind, go with [Laravel Vapor](https://vapor.laravel.com/). It uses [AWS Lambda](https://aws.amazon.com/lambda/) to deploy and auto-scale in a serverless platform.\n\n### Front-End Assets\n\nRun the deploy script on production environment:\n\n```\nnpm run deploy\n```\n\nThis will store production-ready assets inside `public/dist` directory. If you want to fine-tune this process, you can create a script to publish the assets to [Amazon S3](https://aws.amazon.com/s3/) or [DigitalOcean Spaces](https://www.digitalocean.com/products/spaces), and serve them via CDN, such as: [CloudFlare](https://www.cloudflare.com/) or [Amazon CloudFront](https://aws.amazon.com/cloudfront/).\n\n## Extra\n\n### Generate Favicons\n\nIf you ever need to update the favicon, save it as `artworks/favicon/master.png` with a resolution of `1024x1024` pixel, and run:\n\n```\nnpm run favicon:generate\n```\n\nThis will generate new favicon assets under `resources/favicon`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislam%2Flaravel-vite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmislam%2Flaravel-vite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislam%2Flaravel-vite/lists"}