Actions
Wiki¶
Requisiti¶
- OS: Ubuntu 16.04 LTS or higher or WAMP/XAMPP environment
- Server: Apache 2 or NGINX
- RAM: 2 GB or higher.
- PHP: 7.1.17 or higher.
- Processor: Clock Cycle 1Ghz or higher.
- MySQL: 5.7.23 or higher.
- Node: 8.11.3 LTS or higher.
- Composer: 1.6.5 or higher.
Installazione¶
Guida all'installazione: [[https://webkul.com/blog/laravel-ecommerce-website/]]
Installare con composer:
composer create-project bagisto/bagisto
Valorizzare le variabili nel file .env
:
APP_URL=bagisto.local DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=bagisto DB_USERNAME=bagisto DB_PASSWORD=bagisto
Database¶
mysql -uroot -p
inserire la password
-- Create a new database CREATE DATABASE bagisto; -- Select the database USE bagisto; -- Create a new user identified by the specified password CREATE USER 'bagisto'@'localhost' IDENTIFIED BY 'bagisto'; -- Grant all privileges to the created user on the specified database when -- connect from the specified host GRANT ALL PRIVILEGES ON bagisto TO 'bagisto'@'localhost';
Generazione automatica del database con php artisan
./artisan migrate
Seed delle classi che andranno ad interagire con il database
./artisan db:seed
Pubblicazione della cartella public sul server web
./artisan vendor:publish
e selezionare la prima voce (0).
Link della cartella public
./artisan storage:link
Updated by Fluidone Morinmoto over 6 years ago ยท 5 revisions