Skip to content

Griffin-Brome/php-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-demo

screenshot of shop page

Setup - Linux

  1. Install XAMPP

  2. Start XAMPP server

sudo /opt/lampp/lampp start
  1. Create the database
mysql -u root -p
mysql> CREATE DATABASE php_demo
  1. Populate the database
mysql -u root -p  --socket=/opt/lampp/var/mysql/mysql.sock php_demo < db/schema.sql
  1. Move the project files to your htdocs/ folder in your XAMPP installation
make

note: You will be prompted for sudo

  1. Navigate to localhost/public

Setup - Windows

  1. Install XAMPP

  2. Start XAMPP server

\xampp\xampp-control.exe
  1. Create the database
\xampp\mysql\bin\mysql.exe –u root –p
mysql> CREATE DATABASE php_demo
  1. Populate the database
\xampp\mysql\bin\mysql.exe –u root –p php_demo < db\schema.sql
  1. Move the project files to your htdocs/ folder in your XAMPP installation

  2. Navigate to localhost/public