Contributing

Help Dikasir Grow

Open source lives on contributors — bug reports, code fixes, documentation, or just ideas. All are welcome!

Git Workflow

BranchPurpose
mainProduction. Only from release merges
developmentIntegration. Every feature branch merges here
feature/*New feature work. Branch from development, PR to development
fix/*Hotfix. Branch from main, PR to main + development
release/*Release candidate. From development, merge to main + tag
feature/nama-fitur → development → release/x.y.z → main (tag vX.Y.Z)

Dev Environment Setup

git clone https://github.com/aryadwiputra/point-of-sales
cd point-of-sales
cp .env.example .env
composer install && npm install
php artisan key:generate
php artisan migrate --seed
php artisan storage:link

# Run in 2 terminals
npm run dev
php artisan serve

Sample data (products, transactions, users) is included via migrate --seed. Default accounts: arya@gmail.com (admin) and cashier@gmail.com (cashier), password: password.

Testing

php artisan test

The automated tests run on in-memory SQLite — no MySQL needed to run them.

vendor/bin/pint

Automatic PHP formatting following Laravel standards.

💡 When writing product tests, set tax_rate=0 so VAT does not change the grand total.

Pull Request Checklist

  • Run php artisan test — make sure everything passes
  • Run vendor/bin/pint to format the code
  • Write a clear PR description (what & why)
  • Reference the issue you worked on (fixes #123)
  • Include before/after screenshots for UI changes

Ready to Contribute?

Start with an issue labeled "good first issue" — or read the full guide in CONTRIBUTING.md.