Code Monkey home page Code Monkey logo

new-mvc-shop's Introduction

Welcome to New PHP MVC by TANHONGIT

The NEW-MVC-SHOP is a free e-commerce website project for everyone to use. It is built in pure PHP language. And anyone can use it.

  • Customers do not need to know much about technology.
  • Powerful system, many useful functions.
  • Easy to access, easy to use.

Support the project

Support this project ๐Ÿ˜œ ๐Ÿ™

PayPal buymeacoffee TanHongIT

1. Configuration requirements

- Version PHP 7.2 and above (-> 8.1)
- OpenSSL PHP Extension

2. Technology

  • Pure PHP language

3. Feature

1. FRONT-END
    - Shopping cart
    - Save cart with database
    - Customer login
    - Content: Page, Post, Product List, Product Details, Category,...
    - Product attributes: cost price, promotion price, detail,...
    - Feedback, Feedback for product, Feedback for order
    - Comment on Product, Post,...
    - Search, pagination,...
    - Checkout, PlaceOrder,...
    ...

=================================================================

2. BACKEND-ADMIN
    - Admin roles, permission
    - Product manager   (Create, delete, update)
    - Category manager  (Create, delete, update)
    - Order management  (Create, delete, update)
    - Comment manager   (Create, delete, update)
    - Feedback manager  (Create, delete, update)
    - User management   (Create, delete, update)
    - Template manager  (Create, update)
    - Backup database 
    ...

4. Download Database

This is the path to the database file for you to download: /admin/database/***.sql

Create a new database on PHPMyAdmin at your server, then import the .sql file that you just downloaded.

5. Request appropriate edits

After a clone my repository to the local computer, you need to edit some code to be able to connect to the database and help the site works.

5.1 Edit Config

You need to change the path in the 'config.php' file to match the location of this source code on your server and must match the domain you registered.

Path: /lib/config/config.php

<?php
define('BASE_URL', 'new-mvc-shop');
define('PATH_URL', '/');
define('PATH_URL_IMG', PATH_URL . 'public/upload/images/');
define('PATH_URL_IMG_PRODUCT', PATH_URL . 'public/upload/products/');

5.2 Edit Connect Database

You need to change the connection information to the database after you have cloned my repository so that the website can work.

Path: /lib/config/database.php

This is the path to the database file for you to download: /admin/database/***.sql

define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'chikoi');

5.2 Edit .htaccess

Change RewriteBase - Recommend the path that matches your host address.


so we will have:

RewriteBase /

5.4 Edit SMTP Mail

The third thing: You need to change the information about SMTP Mail to be able to use some functions about user account authentication, change passwords, notify users, ...

define('SMTP_HOST','smtp.gmail.com');
define('SMTP_PORT','465');
define('SMTP_UNAME','add_your_mail');
define('SMTP_PWORD','add_your_application_password_from_your_mail');

Change the value of the constant SMTP_UNAME and SMTP_PWORD to match the configuration you added on your Gmail.

Tips: https://support.google.com/accounts/answer/185833?hl=en

Where SMTP_PWORD is the application password for your gmail.com account.

Path: /lib/config/sendmail.php

6. Demo

  1. Front-End: http://tanhongit.epizy.com/new-mvc-shop/home
  2. Back-End: http://tanhongit.epizy.com/new-mvc-shop/admin.php

Account login on Backend

user :
    username: testna      | email: [email protected]        | password: 123456789
    username: tanhongitii | email: [email protected] | password: 123456789
Mod :
    username: eyteyt      | email: [email protected]   | password: 12345678

Admin:
    username: admin       | email: [email protected]       | password: 1234567890

Demo Images

HomePage Image


Slide of Homepage Image


Product Page Image


Admin Manager Page Image


license

new-mvc-shop's People

Contributors

tanhongit avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.