Skip to content

ZhengLinLei/leelim-beta-website

Repository files navigation

LEE LIM Beta website




Logo


Contributing · Issues

 License   Version


This is a LAMP website, PHP version 7.2

Index

  1. Quick start
  2. Installation
  3. Configuration
  4. Contribution
  5. Bugs

1. Quick Start

This project is based in e-commerce with LAMP system.

This project has got two parts:

  1. Customer part
  2. Admin part

Customer part: This is the part where the client are going to visit, the frontend. ./src/leelim

Admin part: Where all the employers can access to view the packages and orders. ./src/leelim_backend


The helper used to pay are:

  1. PayPal
  2. Stripe (Credit and Debit card Online TPV)

This project is not allowed to be copied for commercial projects. Please read the license for more information.

Frontend

Preview Images

Backend

Preview Images

Demo

Preview Videos

With Drive

2. Installation

  1. Clone the project or download the zip
git clone https://github.com/ZhengLinLei/leelim-beta-website.git
  1. Download any Apache motor (XAMPP, WAMP, MAMP...)

    1. XAMPP
    2. MAMP
  2. Please read ./domain_config.txt and follow the steps to prepare the domain

Copy this two code into the correct files:

httpd-vhost.cnf

    <VirtualHost *>
        DocumentRoot "C:\xampp\htdocs\zll\leelim"
        ServerName leelim.test
        <Directory "C:\xampp\htdocs\zll\leelim">
            Options All
            AllowOverride All
            Require all granted
        </Directory>
    </VirtualHost>
    <VirtualHost *>
        DocumentRoot "C:\xampp\htdocs\zll\leelim_backend"
        ServerName backend.leelim.test
        <Directory "C:\xampp\htdocs\zll\leelim_backend">
            Options All
            AllowOverride All
            Require all granted
        </Directory>
    </VirtualHost>

hosts

    127.0.0.1	leelim.test
    127.0.0.1	backend.leelim.test

If you are using another local IP, so you have to change 127.0.0.1 to localhost:port or directly into the IP which you use for Local server

3. Configuration

  1. Open your MySQL editor and import the two databases in ./backups folder. Make sure that all names are correct or the website will append errorsmand you have to fix it manually. Open any issues when you need help.

  2. Once you have all imported into your MySQL, open the website http://leelim.test. If you have changed the domain name, write the domain which you have changed, and do the same with http://backend.leelim.test.

  3. When you open the website you will see some errors when you are using the website, that is because you have to change the internal keys for stripe and Paypal:

Open your code editor, and open the file ./src/leelim/view/api/private/import/module/cart/pay.php and find the line [9] and change the key hash to your stripe account key.

//INCLUDE STRIPE API SDK
require '../../../model/stripe-php/init.php';
//PRIVATE KEY
$key = 'sk_test_51Ihgw6J9HHZbmVIwN4usvDGSSNbxx9GPkaygf0ubDAy69awPaNz5en3bdBZnyjQa3MEHfqOhBHVp600bp1L****'; // ! PUT YOUR STRPE PRIVATE KEY
//DEFINE
$stripe = new \Stripe\StripeClient($key);

And in the line [99] the same for PayPal.

$key_id = 'AWiyKSXaWWWBVzIxwzERzrxf7VjtQ9lDzojx9Qr1nALjgwPDYCQ2uJGg2W4ci08649****'; // ! YOUR PAYPAL ID KEY
//PRIVATE KEY
$key = 'EPbI_vnbeCedt41gb-euY6mbi7v3BvAQGeF2CoXTH3i0Z-9kxrA_urpnrACUaqeKb****'; // ! YOUR PAYPAL PRIVATE KEY
  1. Do the same in leelim_backend, open the file ./src/leelim/controller/controller.php and change you IMAP server data in line[14].
function imap_login(){
    $user = 'account@test.com'; //EMAL ADDRESS
    $pass = '12345678'; //ACCOUNT PASSWORD
    return (imap_open("{imap.gmail.com:993/imap/ssl}INBOX",$user,$pass)); // EXAMPLE OF GMAIL IMAP ADDRESS
}
  1. That's all, you have all configurated to use the project. Any problem feel free to open an issue

4. Contribution

Please read the CONTRIBUTING.md details steps to make pull request. Or contact the author in issues section

5. Bugs

Read common_bugs.txt or open an issue

Love this repo? Give us a star ⭐