-
Notifications
You must be signed in to change notification settings - Fork 19
Installation on Windows
-
MySQL Database
-
Apache Server
-
PHP >= 5.6.4
-
OpenSSL PHP Extension
-
PDO PHP Extension
-
Mbstring PHP Extension
-
Tokenizer PHP Extension
-
XML PHP Extension
-
Composer
-
Laravel Framework is already included in this repository.
"$>" stands for console commands (Start --> run --> cmd)
-
Install XAMPP - https://www.apachefriends.org/index.html
-
Install Composer - https://getcomposer.org/Composer-Setup.exe
-
Install git - https://windows.github.com/
-
Copy all files from ILSCeV/Lara to C:/xampp/htdocs/Lara, e.g. using GitHub For Windows - clone ILSCeV/Lara
-
Open project directory in the console -
$> cd c:/xampp/htdocs/Laraand update dependencies -$> composer update(this one can take some time - don't worry, make some tea) -
In the Apache Server config (httpd.conf) change
DocumentRoot "C:/xampp/htdocstoDocumentRoot "C:/xampp/htdocs/Lara/public"to hide "Lara/public" path. -
Start both the server and the database, e.g. from XAMPP Control Panel
-
Rename the file
.env.examplelocated in/var/www/Lara/into.envand edit environment variables:- set "APP_ENV=production" (or e.g. "development" depending on your context)
- For development purposes a workaround is built into the LoginController which assigns a random dummy-user at each login event, ignoring login/password input from user. It's activated if the "APP_ENV"-variable is set to "development".
- set "APP_DEBUG=false" (or "true" for development)
- set a new application key with
php artisan key:generate - set "DB_HOST", "DB_DATABASE", "DB_USERNAME" and "DB_PASSWORD" to your database credentials
- set "APP_ENV=production" (or e.g. "development" depending on your context)
-
Create a new MySQL database named "lara" in XAMPP (e.g. by using http://127.0.0.1/phpmyadmin ) and update database schema -
$> php artisan migrate --seed- (Skip this step if you are using an existing production DB or you will overwrite the data.)
-
For development only: install Node(https://nodejs.org/en/) then run (in the lara-vedst directory):
$> npm install$> npm run dev- This will install typescript and gulp and running gulp will compile the typescript sources to the
app.$HASH$.jsfile in/public/js/. Note that installing all dependencies may take a while but you can already proceed with the next steps.
-
All changes that you make to typescript/javascript files will require you to run
npm run devonce again, buildingt the files fromresources/*topublic/js. -
Run this once:
$> php artisan config:cache