A pharmacy with the stakeholders involved are the owner
, manager
and cashier
requires a system to streamline its business processes, involving authentication, medication inventory management, and customer record management. The system needs to enforce user roles and permissions for different actions.
Follow these steps to deploy Medi App.
Clone using the Web URL
git clone https://github.com/DDSameera/mediapp.git
APP_NAME=MediApp
APP_ENV=local
APP_KEY=base64:0E+aNuSoDkqt/0ZKmxWAklaEygSwgsTjx4trjgN2Joo=
APP_DEBUG=false
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=xxxxx
DB_PORT=xxxxx
DB_DATABASE=xxxxxx
DB_USERNAME=xxxxx
DB_PASSWORD=xxxxxx
composer install
php artisan key:generate
php artisan migrate:fresh --seed
php artisan optimize
php artisan optimize:clear
username : superadmin
password : superadmin
username : owner
password : owner
username : manager
password : manager
username : cashier
password : cashier
- Model View Controller
- Facade
- Singleton
- Factory
- Service Layer
- Observer
- Class Names
class MedicineService {}
class MedicineController {}
- File Names
MedicineService.php
CustomerService.php
- Function Names with Camel Case
- Database tables and Columns : All Table names are in plural nounds
- Route Names are in Snake Case
- use
Api/v1
to simplify maintenance. Developers have the flexibility to introduce newer versions likev2
,v3
- Added Comments for better understance
- I followed principle of Single Responsibility, It is crucial for maintaining clean and maintainable code