This is a LAMP website, PHP version 7.2
This project is based in e-commerce with LAMP system.
This project has got two parts:
- Customer part
- 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:
This project is not allowed to be copied for commercial projects. Please read the license for more information.
Preview Videos
With Drive
- Clone the project or download the zip
git clone https://github.com/ZhengLinLei/leelim-beta-website.git
-
Download any Apache motor (XAMPP, WAMP, MAMP...)
-
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
-
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. -
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.
-
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
- 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
}
- That's all, you have all configurated to use the project. Any problem feel free to open an issue
Please read the CONTRIBUTING.md
details steps to make pull request. Or contact the author in issues section
Read common_bugs.txt
or open an issue