- Clone the repository:
git clone [email protected]:hybridly/demo.git blue-bird && cd blue-bird
- Use SQLite to simplify installation by creating a file database.
touch database/bluebird.db
- Create a new
.env
file by copying.env.example
and include the required database information to complete the migration.
cp .env.example .env
- Fill the following environment variables:
DB_CONNECTION=sqlite
DB_DATABASE=database/bluebird.db
- Install the dependencies using
pnpm
(we recommend usingni
if you are used to other package managers):
pnpm install # or `ni`
composer install
- Run the migrations:
php artisan migrate --seed
- Secure your local site development by using the Herd UI or with Valet on the console by using:
valet secure blue-bird
- Start the Vite server and enjoy!
pnpm run dev # or `nr dev`
If you are receiving this error:
error when starting dev server:
Error: Unable to find Valet certificate files for your host [blue-bird.test]. Ensure you have run "valet secure".
- Run
valet secure
- Or edit
vite.config.ts
and remove thevaletTls
line.