Best laravel framework open-source packages.

Epilketos laravel svelte 0.0

Proof of concept laravel svelte with inertia for voting app
Updated 10 months ago

e-Pilketos menggunakan Laravel Svelte dengan Inertia

Aplikasi ini hanya sekedar proof of concept untuk Laravel Svelte with Inertia boilerplate dari salah satu repoku.

e-Pilketos, adalah aplikasi pemungutan suara (voting) untuk Pemilihan Ketua OSIS.

P E R I N G A T A N

Aplikasi ini memiliki sangat banyak sekali kekurangan, karena memang hanya sekedar eksperimen.

Screenshot

Login, using token. With validation and error message.

Voting page.

View detail and choose a candidate.

Live count.

Backend untuk adminnya belum ada, edit kandidat lewat SQL :v

Installation

Clone the repo

git clone https://github.com/dansvel/epilketos-laravel-svelte-0.0.git epilketos
cd epilketos

Install PHP dependencies:

composer install

Install NPM dependencies: you can use npm or yarn. I don't know why I can't use pnpm

npm install

Build assets, or run it in watch mode

npm run dev
npm run watch // so you can edit svelte files and refresh the webapp

Setup configuration:

cp .env.example .env

Generate application key:

php artisan key:generate

Setting your database then run migration and seeder

php artisan migrate
php artisan db:seed

seeding akan membuat 3 kandidat untuk dipilih dan 200 token untuk login pemilih

Run artisan server:

php artisan serve