Skip to content

Installation

Jeff Simons Decena edited this page Feb 19, 2018 · 24 revisions

Suggested local Installation

What you need

** Notes: Turn on VT-x on your machine: **

Installation Globally

  • Open your terminal and run vagrant box add laravel/homestead

  • Type cd ~ && git clone https://github.com/laravel/homestead.git Homestead

  • Go to ~/Homestead and run bash init.sh for Unix/Linux and init.bat for windows

  • Create the project with cd ~ && composer create-project jsdecena/laracom

  • Modify your Homestead.yml file in ~/.homestead folder with

folders:
    - map: ~/Code
      to: /home/vagrant/Code

sites:
    - map: homestead.app
      to: /home/vagrant/Code/laracom/public

Just make sure you have Code folder in your home directory. If you have other workspace folders, change the Code with your folder.

  • Then run vagrant up --provision

  • Wait until the provisioning is finished then you can go to http://192.168.10.10

  • OPTIONAL You can also set the IP and name to /etc/hosts like this 192.168.10.10 homestead.app so you can go to http://homestead.app

Native PHP server

  • You just need to run php artisan serve and it will open a browser for you

How to configure your e-commerce

  • Go to the project folder and run composer install

  • Issue a command on the terminal cp .env.example .env

  • If you are on homestead, default details DB connections are:

    • DB_CONNECTION=mysql
    • DB_HOST=192.168.10.10
    • DB_PORT=3306
    • DB_DATABASE=homestead
    • DB_USERNAME=homestead
    • DB_PASSWORD=secret
  • Run migration and seed default data with php artisan migrate --seed

  • If you run your app with php artisan serve connect to your installed db connection

Other settings

  • Admin / Customer login credentials:

    • Check your database's employees and customers tables. Grab the email and password should be secret.
  • By default, Paypal is the default payment gateway. You must set the environment variable in you .env with your either sandbox or production credentials.

  • Paypal credentials looks like this in the .env:

    • PP_ACCOUNT_ID=xxxxx-facilitator@email.com
    • PP_CLIENT_ID=xxxxx
    • PP_CLIENT_SECRET=xxxxxx
    • PP_URL=https://api.sandbox.paypal.com
    • PP_MODE=sandbox
  • MailChimp Newsletter settings should be set in .env

    • MAILCHIMP_API_KEY=
    • MAILCHIMP_LIST_ID=
  • Set your mail server in the .env

    • MAIL_DRIVER=smtp
    • MAIL_HOST=smtp.mailtrap.io
    • MAIL_PORT=2525
    • MAIL_USERNAME=
    • MAIL_PASSWORD=
  • Set your shop default config

    • SHIPPING_COST=0
    • TAX_RATE=10
    • DEFAULT_CURRENCY=USD

Production installation

  • There are many ways to install it on your server. If you need help, you can message me for my service. Thanks!

That should be it! 🎉 If anything else for clarification, you can email ✉️ or message me. 😄

Clone this wiki locally