This is a Laravel + Vue.js e-commerce template that will make it easy for you to start your own online store.
There is the DEMO ULE-shop.
- Setup (install/create) Database and PHP server.
- Install Composer
- Install npm.
- Install git. Get this project from Github (git clone).
- Copy ".env.example" file and rename to ".env". Edit the .env file (connect to DB).
- Run "composer update".
- Run "npm install", then "npm run dev".
- Run "php artisan key:generate". It will add application key to the .env file.
- Run "php artisan migrate" Laravel Migrations.
- Important! It's the correct way to seeding: "php artisan db:seed --class=DatabaseSeeder" Laravel Seeding.
- Setup "Document root" for your project on server like ".../my_example_shop/public".
- For testing back-end: copy and rename .env.testing.example to .env.testing, then add your app_key from .env file and run the command "php artisan test"
- For testing Vue.js run the command "npm run test"
- To check code quality run: ./vendor/bin/phpstan analyse --memory-limit=2G. Setup code quality Level 0-8 in the file phpstan.neon.
- setup docker and docker-compose on your local machine.
- create the .local_data folder in the folder with your project
- install mkcert and generate ssl certificates:
brew install mkcert nss
mkcert -cert-file .docker/nginx/dev/site.crt -key-file .docker/nginx/dev/site.key localhost 127.0.0.1
- run docker-compose up -d
Uladzimir Sadkou: [email protected]