• Stars
    star
    152
  • Rank 244,685 (Top 5 %)
  • Language
    JavaScript
  • License
    GNU Affero Genera...
  • Created about 6 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ›’ An advanced and complete PHP 7 eCommerce website along with MySQL database and Admin interface.

Advanced PHP 7 eCommerce Website

An advanced and complete PHP 7 eCommerce website along with MySQL database and Admin interface.

Table of Contents

Getting Started

These instructions will get your copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You will need the following running on your local development machine.

  • Apache or Nginx
  • PHP 7.*
  • MySQL or MariaDB

Installing

Follow the instructions below and your website will be up and running in a few minutes.

Installing required packages

Before doing anything you will need to install the required packages using composer. Running composer installs the dotenv project which allows you to configure your website using a .env file.

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 1 install, 0 updates, 0 removals
  - Installing vlucas/phpdotenv (v2.5.1): Downloading (100%)
Generating autoload files
> /bin/cp config/.env.prod config/.env
> /bin/cp config/.htaccess.prod .htaccess

Create MySQL/MariaDB Database

Using whatever way you do, you need to create a new MySQL database. When creating the database, call it ecommerce so that you can import the SQL queries successfully into your new database.

To populate the database with data, there is a file in the config folder called /config/db_dump.sql. You need to import this SQL file into the database using your preferred method. I recommend using phpMyAdmin to import the database queries but if you use a command line you would need to execute the following command.

$ mysql -u DB_USERNAME -p ecommerce < ./config/db_dump.sql

Be sure to replate DB_USERNAME with the name of your MySQL username.

The next step is to populate the configuration files with your new database connection details.

Update Config Variables

After you've run composer install you will see a file called /config/.env in the config directory. You need to populate this file with your database connection settings.

Make sure you uncomment these lines and populate it with your database connection details:

# Database configuration
########################
export DB_HOSTNAME='localhost'
export DB_USERNAME='root'
export DB_PASSWORD='pass'
export DB_DATABASE='ecommerce'
export DB_PORT='3306'
# export DB_SOCKET=''

There are many other settings in the /config/.env file you are most likely going to want to set. At the very least, you should update the General Configuration settings to your own environment.

These are the settings you can configure for your store.

  • General Configuration
  • Company Information
  • Database configuration
  • Google Maps API Key
  • Social Media Profiles

Run Webserver

Once you have the database up and running you can start the webserver (see command below) and you should see your newly created website running at http://localhost:8000.

$ php -S localhost:8000
[Fri Aug  7 10:43:59 2020] PHP 7.4.8 Development Server (http://localhost:8000) started
[Fri Aug  7 10:44:02 2020] [::1]:51358 Accepted

Funding

If you find this project valuable, please consider giving us a small donation to help keep the project alive. We can really do with the support to help us continue to maintain this project.

Contributing

Please read the CONTRIBUTING.md file for details on how you can get involved in the project as well as the process for submitting bugs and pull requests.

Code of Conduct

Please read the CODE_OF_CONDUCT.md file for the guidelines that govern the community.

Versioning

We use Semantic Versioning for software versions of this project. For a list of all the versions available, see the tags and releases on this repository.

Change-Log

View the CHANGELOG.md file for a detailed list of changes, along with specific tasks completed for each version released to date.

Authors

Also see the list of contributors who have participated in this project.

License

This project is licensed under the GNU Affero General Public License License. See the LICENSE file for full details.

Acknowledgements

Special thanks go out to the following people and projects who have helped in some way to make this project a reality.

More Repositories

1

ui-ux-design-library

A collection of free eBooks and PDFs related to UI, UX and Interaction Design.
204
star
2

Webserver-Error-Pages

πŸ“΅ A drop-in replacement of 54, beautifully designed, user-friendly Apache 2, Nginx and Microsoft IIS HTTP error pages.
HTML
24
star
3

jekyll-heroku-starter-kit

πŸ§ͺ Comprehensive boilerplate code for installing and configuring a Jekyll 4 site on Heroku with an elegant Material Design Lite theme.
HTML
7
star
4

.github

🐱 A set of Github templates that accelerate your project with templates for ISSUE_TEMPLATE, PULL_REQUEST, CONTRIBUTING, CODE_OF_CONDUCT and LICENSE generator.
6
star
5

docker-cakephp3.6-php7-mysql-apache2

Fully operational installation of CakePHP 3.6 with 2 databases on PHP 7.2, Apache 2.4 and MySQL 5.7.
Dockerfile
6
star
6

MacChatGPT

A macOS, Windows and Linux desktop application which runs ChatGPT easily and free of charge.
JavaScript
5
star
7

justinhartman

My 50th repository becomes my own repository. I use this repo to display my README on my profile @justinhartman.
2
star
8

diceware-password-generator

🎲 Diceware password generator with multiple variations; written in Python.
Python
2
star
9

bootstrap4.espressotemplate

🍲 A Bootstrap 4 starter kit template for Espresso (espressoapp.com), the macOS Editor App.
HTML
1
star
10

imdb-app

This project is a web application that provides a user-friendly interface for searching and browsing movies and TV shows, along with a feature to watch the videos directly in the app.
JavaScript
1
star
11

howto

A collection of *nix based howto's that I've created over the years for Linux and macOS.
HTML
1
star
12

nova-conf

πŸ‘©πŸΏβ€πŸ’» Nova Editor syntax highlight and completion for .conf & .cnf files.
1
star
13

C-Programming-Course

An introduction to C programming by OST with exercise source code.
C
1
star
14

html-json-xml-output-using-tree

🌲 Output file and directory structures to HTML, JSON and XML using the Linux tree command.
HTML
1
star
15

MEGAdesktop

A Mega.nz Electron Desktop app for managing files on Windows, macOS and Linux.
HTML
1
star
16

html5up-astral

Original theme by html5up which has been ported to Grav.
CSS
1
star
17

OSX-iCal-Fix

Apple iCal / Microsoft Exchange server Timezone Fix - This is a fix I created about 3 years ago that fixes timezone issues between iCal events sent by Exchange Server to Apple iCal.
HTML
1
star
18

H5BP.espressotemplate

β˜• HTML5 Boilerplate template for Espresso, the macOS Editor App.
CSS
1
star