Code Guide 2018/10/16
Installation directions in the development environment
- Clone the repository to a folder in the development server
- Create a virtual host in the web server pointing to the public folder where the repository was cloned to. Example for Windows Wampserver:
<VirtualHost *:80> ServerName devel.hitachi-web.com DocumentRoot c:/wamp/www/hitachi-web/public/ <Directory "c:/wamp/www/hitachi-web/public/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost>
- Set up a DNS for the created vhost
- Create a mysql database
- Create an .env file from the .env.example file included in the repository (you can find the explanation for the variables in the .env file later in this document)
- From the command line, from the repository folder, run:
(sets up composer with the keys to access the private Bitbucket repository)composer config -g bitbucket-oauth.bitbucket.org TcwyUpPHeJnRA2tbtC matQb8CdEBEm85QYMjPJDLb78uL5LZYF
(installs the necessary dependencies in the /vendor folder)composer install
(creates the DB tables and fills them out with master data)php artisan migrate:refresh
(installs the necessary javascript dependencies in the /node-modules folder)npm install
(compiles css and js assets)npm run dev
(creates a link in /public/storage pointing to /storage/app/public, which is the folder where files are stored via admin so they can be accessed via front-end)php artisan storage:link
The default user to access the administration panel is:
User: admin@test.com
Password: admin