Skip to content

albertnel/eureka

Repository files navigation

Eureka

New Windows Dev Environment Setup

If you are starting from scratch, follow the instructions below.

If you already have PHP, Composer, Laravel and a database installed, follow these instructions.

PHP

PHP >= 5.5.9 is required for Laravel 5.1

PHP 5.5.30: http://windows.php.net/downloads/releases/php-5.5.30-nts-Win32-VC11-x64.zip

Extract and add the extracted path to your environmental variable list, eg:

PATH=C:\PHP5.5\;

Confirm your PHP version:

C:\>php --version
PHP 5.5.30 (cli) (built: Sep 30 2015 13:49:51)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

Next, enable the following PHP extensions in php.ini:

extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_openssl.dll
extension=php_pdo_mysql.dll

NPM

Download and install NPM: https://www.npmjs.com/package/npm

GULP

First install Gulp globally.

npm install -g gulp

Next, install Gulp in your project directory.

npm install --save-dev gulp

To compile SASS/CSS/JS files, run gulp.

To automatically watch the project folder for changes, run gulp watch.

Redis

Download and install Redis from: https://github.com/MSOpenTech/redis/releases

Composer

Download composer installer from: https://getcomposer.org/download/

Laravel

Install Laravel via Composer.

composer global require "laravel/installer=~1.1"

Add the Laravel vendor/bin path to your environmental PATH variable, eg:

C:\Users\<username>\AppData\Roaming\Composer\vendor\bin

Laravel Setup

Open the config/app.php file. Change the timezone setting to:

'timezone' => 'Africa/Johannesburg',

Database setup

Create a database using the utf8-unicode-ci encoding:

CREATE DATABASE eureka_laravel /*!40100 COLLATE 'utf8_unicode_ci' */

In the .env found in the project root directory, change the following fields to configure for your database setup:

DB_HOST=localhost
DB_DATABASE=eureka_laravel
DB_USERNAME=root
DB_PASSWORD=password

Next, install doctrine/dbal for a database abstraction layer.

composer require doctrine/dbal

Starting the built-in server

Laravel comes with a built-in web server. Go to the project directory and run:

php artisan serve

Cloning the existing project

First, please make sure that all dependencies have been installed, ie PHP, Composer, Laravel and a working database.

Clone repo

Clone the repository from github via one of the following methods.

HTTPS: https://github.com/albertnel/eureka.git SSH: git@github.com:albertnel/eureka.git

Setting up the environment

Copy the .env.example file and rename the copy to .env.

Change the following fields to configure for your database setup:

DB_HOST=localhost
DB_DATABASE=eureka_laravel
DB_USERNAME=root
DB_PASSWORD=password

Install dependencies

In the root folder of the repo, run:

composer install

Generate a project key

Run the following command to generate an APP_KEY

php artisan key:generate

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages