- TODO if I ever want to come back
- Project
- Used
- Requirements
- User types
- Custom data seeding
- Start project
- Modals
- Buy again button implementation
- Controller separations and refactoring
Project created to learn and practise Laravel.
- Laravel - MIT License
- BladewindUI - MIT License
- Lorem Picsum - MIT License
- purl - MIT License
- Laravel - 11.9
- BladewindUI - 2.6
- Node.js - v22.4.0
- Python - for custom data seeding
Type | Password | |
---|---|---|
Administrator | admin@example.com | password |
Seller | s[1,2,3,4,5,6]@example.com | password |
User | u[1,2,3,4,5,6]@example.com | password |
see DatabaseSeeder.
In data.py is structure:
products = [
{
"category": {
"sub-category": ["name of subacategory in singular form if necessary",
"suffix like: l(liters) or kg(kilograms) or ...",
("company", "company", "company", ...)],
...
}
},
...
]
product name is" sub-category (element[0]
) + company (one of element[2]
) + unit (element[1]
).
In main.py you can modify constants.
Run main.py and generated file data.sql
move to /database/seeds
.
Run migrations:
> php artisan migrate
Seed database:
> php artisan db:seed
> run.bat -mds
> run.bat
> php artisan serve
> npm install
> npm run dev
> php artisan migrate
> php artisan db:seed