Skip to content

dasundev/dasun.dev

Repository files navigation

The source code of dasun.dev

Build Status

✨ Introduction

Welcome to the source code repository for Dasun's website. Feel free to explore, learn new things, and contribute to this codebase.

📦 Installation

This is a Laravel application, built on Laravel 10 and uses Livewire and TailwindCSS for the frontend. If you're familiar with Laravel, you'll feel right at home.

In terms of local development, you can use the following requirements:

  • PHP 8.2 - with SQLite, GD, and other common extensions.
  • Node.js 20 or more recent.

If you have these requirements, you can start by cloning the repository and installing the dependencies:

git clone https://github.com/dasundev/dasun.dev.git

cd dasun.dev

git checkout -b feat/your-feature # or fix/your-fix

Important

Don't push directly to the main branch. Instead, create a new branch and push it to your branch.

Install PHP and Node.js dependencies:

composer install

npm install

Set up your environment file and generate the application key:

cp .env.example .env

php artisan key:generate

Prepare your database and run the migrations:

touch database/database.sqlite

php artisan migrate

Link the storage to the public folder:

php artisan storage:link

In a separate terminal, build the assets in watch mode:

npm run dev

Finally, start the development server:

php artisan serve