Installation

Dependencies

Note: Make sure that all dependecies are met!

Install

Setup Database

Setup database of your flavor (mySQL,SQLite, NoSQL...)

Clone repo

First clone repo and change to working directory

$ git clone https://gitlab.com/mtervonen80/artcanvas.git

$ cd artcanvas

Install Vendors

Composer

$ composer install

Laravel settings

Copy environment variables .env.example to .env

$ mv .env.example .env

Generate key

$ php artisan key:generate

Change .env settings

APP_NAME=ArtCanvas
APP_ENV=local #Set production when app is live
APP_KEY= #Generated with cmd $php artisan key:generate
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
APP_LOCALE=fi
APP_TIMEZONE=Europe/Helsinki
ARTCANVAS_VERSION=0.7.1 #Edit version if source has been altered...

DEBUGBAR_ENABLED=false #Set true only in local development

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=artcanvas #Set database name
DB_USERNAME=artcanvas #Set database user
DB_PASSWORD=artcanvas #Set database pwd

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=database #Do not edit! App needs database driven sessions!
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=info@example.com #Set email for user account verification and password reset
MAIL_PASSWORD=secret
MAIL_ENCRYPTION=tls

MAIL_FROM_ADDRESS=hello@example.com
MAIL_FROM_NAME=Example

SNEAKER_SILENT=false #Set true to enable bug-alerts
SNEAKER_MAIL=info@example.com #Set email where bug-alerts go

PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=

GA_KEY=UA-XXXXX-X #Google Analytics key

MAPS_KEY=your_key_here #Google Maps key

DISQUS_ENABLED=false #Set true to enable Disqus-comments
DISQUS_USERNAME=your_website_shortname #Disqus web-site shortname

INTROVIDEO=https://www.youtube.com/watch?v=1NHcZugZekI #Landing page intro video. If empty, element is dropped out

Migrate database

Migrate database structure

$ php artisan migrate

Configuration cache

Create cache of all configuration files

$ php artisan config:clear