A "Digital Twin" store shelf management system.
- Backend: Laravel 12 (API, Sanctum)
- Frontend: Vue 3 (Composition API, Pinia, Tailwind 4)
- Database: SQLite
- Backend Structure: Configured SQLite, created Product model, migration, factory, seeder, and controllers (AuthController, ProductController).
- Frontend Structure: Setup Axios, Pinia Stores (
auth,product), Reusable Components (ProductCard, Modal,Input), and Views (LoginView,ShelfView). - Styling: Premium "Dark/Light" mode compatible design with Tailwind CSS.
Important
The development environment seems to be missing php, npm, and git in the system PATH. You must ensure these are accessible or run the commands in an environment that supports them.
- Navigate to backend:
cd backend - Install dependencies:
composer install
- Setup Database:
# Ensure database.sqlite exists touch database/database.sqlite php artisan migrate --seed - Generate Key:
php artisan key:generate
- Serve:
php artisan serve
- Navigate to frontend:
cd frontend - Install dependencies:
npm install
- Run Dev Server:
npm run dev
- The Seeder allows creating a user. You may need to create one manually using
php artisan tinker:User::factory()->create(['email' => 'admin@store.com', 'password' => 'password']);
- Use
admin@store.com/passwordto login.