# Customer Point Just a simple app to record customer poin and web to access poin gain ## Support me Trakteer Saya ## Requirements - PHP 8.1 or latest - Node 16+ or latest ## How to run prepare env ```bash cp .env.example .env # configure app for laravel touch database/database.sqlite # if you use .env.example with default sqlite database composer install npm install ``` use php server ```bash php artisan migrate --seed # create table for db and seed data php artisan key:gen php artisan ser #keep run to dev ``` compile asset ```bash npm run dev # compiling asset for development # keep run for dev ```
easy way ```bash docker compose up -d ``` ## Default User ```bash username : admin@admin.com password : password ``` ## Compile Assets ( to prod ) ```bash npm run build ``` ## Screenshot ![image1](1.png?raw=true) ![image2](2.png?raw=true) ## Other ```php $faker = Faker\Factory::create(); foreach (range(0,1000) as $range) { echo $faker->regexify('[A-Z]{5}[0-4]{3}').', '.$faker->name.','.$faker->randomNumber(3, false). "\n"; } ``` ```bash rsync -arP -e 'ssh -p 224' --exclude=node_modules --exclude=.git --exclude=.env --exclude=storage --exclude=public/hot . arm@ajikamaludin.id:/home/arm/projects/point rsync -arP -e 'ssh -p 224' --exclude=node_modules --exclude=database/database.sqlite --exclude=.git --exclude=.env --exclude=storage --exclude=public/hot . arm@ajikamaludin.id:/home/arm/projects/point ```