/fooCart

A Laravel 5 eCommerce application with integrated Stripe payments.

Primary LanguagePHP

fooCart

fooCart is a Laravel 5 eCommerce application with integrated Stripe payments.

The goal of this project was to create a fully functional e-commerce application.

The following features were required for this project:

  • Fully functional administration panel
  • Slideshow management module
  • Inventory management module
  • User management module
  • Order management module
  • Payment processing using the Stripe API.
  • Message management module
  • On the fly image manipulation using ImageMagick
  • Client side rendering of inventory using Handlebars JS

Note All models are located in /app/src

View Demo

https://foocart.justinc.me

https://foocart.justinc.me/admin

Username: demo.user@justinc.me

Password: demo123

Requirements

  • This application requires the Composer Dependency Manager, located at getcomposer.org
  • This application requires a Stripe account with API keys.
  • This application is configured to use the Mandrill email API and requires a Mandrill account.

Installation

Clone the repository

git clone https://github.com/justincdotme/foocart.git

Install the application using Composer

composer install

Configure your environment as per the Laravel documentation then run the migrations+seeds

php artisan migrate
php artisan db:seed

Set your Stripe API keys in config/stripe.php

return [
    'secret_key' => env('SECRET_KEY', 'secret key here'),
    'publishable_key' => env('PUBLISHABLE_KEY', 'publishable key here'),
];

Set the URL to the app in config/app.php

'url' => 'http://url.to.your.application',

Add your Mandril API information to config/mail.php

'driver' => 'smtp',
'host' => 'smtp.mandrillapp.com',
'port' => 587,
'from' => ['address' => 'no-reply@your-server.com', 'name' => 'Name'],
'username' => 'Mandrill username',
'password' => 'Mandrill key',

Configure return email addresses for outgoing email messages in config/messages.php

return [

    //Website admin email
    'site_admin' => 'email@address.com'

];

IMPORTANT NOTICE

This application is a portfolio project and is not intended to be used in a production capacity. The application has been developed with security in mind but I offer no gaurantee that it is safe for use in a live environment. There are several (much better) e-commerce solutions available that are both security tested and widely supported. I would highly recommend that you use one of those for a live environment. With that said, you are free to use this application however you see fit. Please review the MIT License at the bottom.

Credits

License

The MIT License (MIT)

Copyright (c) 2015 Justin Christenson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.