Skip to content

hao1987/winterfell

Repository files navigation

A skeleton shopping cart pipeline project modified upon company's logic.

A LAMP stack project with laravel framework.

  • Model: app/x.php
  • Controller: app/Http/Controllers/x
  • View: resources/views/x
  • js/css: public/x

Features:

  • Laravel 5.1.x
  • Twitter Bootstrap 3.x
  • Back-end
    • Automatic install and setup website.
    • User management.
    • Session management.
    • Shopping cart management.
    • Coupon code validation.
  • Front-end
    • User login, registration.
    • View products, own shopping cart, shopping history.
    • bootstrap modal popup and.
  • Packages included:
    • Datatables Bundle

##Requirements

PHP >= 5.5.x
OpenSSL PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
MySQL
Composer
Node JS

##How to install:


Step 1: Get the code - Clone from the repository

git clone git@github.com:hao1987/winterfell.git winterfell

Step 2: Use Composer to install dependencies

cd PATH/winterfell
composer install

Step 3: Create database

Create database e.g.'winterfell' with utf-8 collation(uft8_general_ci), after that, rename .env.example as .env and change to your own database credentials: e.g. database, username, password and port number(optional).


Step 4: Install

Install dependencies listed in package.json with:

npm install

Retrieve frontend dependencies with Bower, compile SASS, and move frontend files into place:

gulp

Now that you have the environment configured, you need to create a database configuration for it. For create database tables use this command:

php artisan migrate

And to initial populate database use this:

php artisan db:seed

Start laravel built-in server:

php artisan serve

You can visit the site:

http://localhost:8000/

Step 5: Shopping

You can now login:

username: user@user.com
password: user

Avaliable Coupon Code:

blackfriday25

Troubleshooting

RuntimeException : No supported encrypter found. The cipher and / or key length are invalid.

php artisan key:generate

PDOException : SQLSTATE[HY000] [2002] No such file or directory

set up MySQL port number in .env:
DB_HOST=localhost:PORT

Additional information

Inspired by and based on Laravel-4-Bootstrap-Starter-Site


About

sample shopping cart skeleton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published