Full-fledged point of sales & inventory system solution which contains of:
- mobile app, tablet view (flutter 2)
- backend server (lumen + PHP 8), server-side rendered frontend (alpine.JS)
The aim of PoSer is to practice:
- cheap
- rapid development
- type & null safety in newest PHP 8 feature
- lightweight client
- Generate JWT token with the
/gen-secret
http endpoint, this allows you to get a JWT token to put in your.env
file
http://localhost:8000/gen-secret
- Fill your
.env
file with the correct credentials, example in.env.example
DB_HOST=127.0.0.1
DB_DATABASE=
DB_USERNAME=
DB_PASSWORD=
ADMIN_PASSPHRASE=
JWT_SECRET=
- Migrate your database
php artisan migrate
- Populate your database
# GET request in browser
http://localhost:8000/init
- You are ready to go. Enter the root URL (for example
http://localhost:8000
) or spin up a dev server by using:
php -S 0.0.0.0:8000 -t public
- Instal flutter, android SDK
- Fill
.env
contents, example available in.env.example
BASE_URL=http://192.168.1.10:8000
- Run
flutter run
- Build
flutter build apk