Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lucthienphong1120/mobile-shop-backend

Mobile Shop E-Commerce Back-End with database
https://github.com/lucthienphong1120/mobile-shop-backend

backend-template bootstrap database e-commerce ecommerce html javascript mobile-shop mysql php php-template shop shop-template shopping-cart sql website

Last synced: about 1 month ago
JSON representation

Mobile Shop E-Commerce Back-End with database

Awesome Lists containing this project

README

        

# Mobile-Shop-E-Commerce-Website

In this complete E-commerce Website, We will take a look at how to create Mobile Shop Using PHP and Mysql Database. We gonna start by creating an HTML template then convert it into PHP and then use MySQL database to fetch products and display it in the project.

## Setup database

Firstly, import the database from [mobileshop.sql](./mobileshop.sql)

Next, goto [/func/DBConnect.php line 6](./func/DBConnect.php#L6), change the follow information:

```php
protected $host = 'localhost';
protected $user = 'root';
protected $password = '';
protected $database = 'mobileshop';
```

## Demo static pages

+ [Homepage](./mobile-shop-backend/index.html)
+ [Cart (user=guest)](/mobile-shop-backend/cart.html)
+ [Product (id=1)](./mobile-shop-backend/product.html)
+ [Login](./mobile-shop-backend/login.html)
+ [Register](./mobile-shop-backend/register.html)
+ [Account (role=admin)](./mobile-shop-backend/account.html)
+ [Manage (role=admin)](./mobile-shop-backend/manage.html)

# Dynamic with PHP

1. Make sure you have installed Xampp and turned on apache and mysql
2. *Fork* the project and *Clone* it into C:/xampp/htdocs/
3. Change the configuration at [Setup database](#setup-database)
4. Open your browser at `http://localhost://index.php`
5. Leave a *Star* for this project if you feel useful, thank you