Advanced Installation for developers

Installing StockAwesome is simple all you need is wamp with php 5.4+ and composer installed. All of this come shipped with stock awesome and you do not need to download them some software like composer do require an internet connection.First Install Wamp Server which is located within the Installation Files folder.

Installing Wamp

Double click on the downloaded file and just follow the instructions. Everything is automatic. The WampServer package is delivered whith the latest releases of Apache, MySQL and PHP.

MSVCR110.dll error and sorting it out

Once you have finished installing wamp you may see the below popup

The program can't start because MSVCR110.dll is missing from your computer. Try reinstalling the program to fix this problem.

To sort this out just install the file vcredist_x86.exe. Then reinstall wamp once again.

Using WampServer

Once everything is set up you may need to start the apache service. First click the Wamp icon then apache > Service then install service after that return to that menu and click start/resume service.

My helpful screenshot

The “www” directory will be automatically created (usually c:\wamp\www). Copy the stockcontrol folder from the Installation Files Folder to the "www" directory. You are almost there dont worry.

setup PHP cli in path

Larvel needs you to run php scripts to create databases and other tasks. This makes complicated tasks such as seeding your database easy. For you to use PHP in command line you need to add it to your path. This is rather simple all you have to do is :-

Open Control Panel

My helpful screenshot

Go to System

My helpful screenshot

Click Advanced System Settings

My helpful screenshot

On the popup that appears click enviromental variables

My helpful screenshot

Double click path under system variables and add this path *;C:\wamp\bin\php\php5.5.12* to the very end of the input box

My helpful screenshot

My helpful screenshot

Create StockControl Database in mysql

Creating the database for StockAwesome is pretty easy open up phpmyadmin usually opened by visiting PHPMYADMIN on your pc or if you are using a server with a public/internal IP visit http://yourip/phpmyadmin.

click Databases that is situated almost at the top of the page.

My helpful screenshot

Enter the name stockcontrol as your database name then create.

My helpful screenshot

Installing Composer

Laravel utilizes Composer to manage its dependencies. So, before using Laravel, you will need to make sure you have Composer installed on your machine. Composer is within the Installation Files folder. Simply double click Composer-Setup.exe to install it.

My helpful screenshot

Composer will be set to run in commandline by default

My helpful screenshot

If you have set up your path correctly composer will detect it and all you have to do is finish your installation by clicking next

My helpful screenshot

Finally

Open up command prompt

cd c:\wamp\www\stockcontrol
composer update

My helpful screenshot

Update and install all of StockAwesome Dependencies. Then finally migrate your database. Commands are on the right

Creating database tables and default users.

Creating Database Tables

Assuming that you have installed all pre-requisites described above. Navigate to the root of you Stock Awesome application using cmd

cd c:\wamp\www\stockcontrol
composer update

My helpful screenshot

Then run the command on the left that will generate all your database tables and create user roles

php artisan setup

The above command does several things

  1. Creates database tables
  2. Creates user roles
  3. Prompts you to create the default admin user to allow you to login

My helpful screenshot

Creating Default users

If you have run php artisan setup above and created default admin user you do not need to do anything in this section.

--name = the name of the user --password = is the password --email = is the email

cd c:\wamp\www\stockcontrol
php artisan stock:admins --name=dennis --password=43goodfgffsd --email=admin@codedcell.com

StockAwesome comes with inbuilt commands for creating admin users. This is because after installing it most likely your database will empty to create your first admin user use the following command

Finally

Edit .env file to meet your companies requirements

visit http://localhost/stockcontrol