/pizza-stop

A full stack LAMP & React shopping cart web application

Primary LanguageJavaScript

Pizza Stop

A full stack LAMP & React shopping cart app

Technologies Used

  • React.js
  • Webpack 4
  • Bootstrap 4
  • PHP
  • MySQL
  • CSS3
  • HTML5
  • AWS EC2

Preview

Desktop

pizza-stop-preview

Mobile

pizza-stop-mobile

Development

System Requirements

  • PHP 7.2
  • NPM
  • MySQL 8.0
  1. Clone the repository

    git clone https://github.com/christianparizeau/pizza-stop
    cd pizza-stop
  2. Install all dependencies with NPM.

    npm install
  3. Create a database in MySQL

    • phpmyadmin (Recommended)
    1. Log into phpmyadmin
    2. Create a new table (remember this name)
    • CLI
    1. In your terminal type to login, where username is your MySQL username. Default is root
    mysql -u username -p
    1. Enter your password for MySQL. Default is root
    2. Create a new Database, replace dbname with your choice name for the database
    CREATE DATABASE dbname;
  4. Import the example database to MySQL

    npm run db:import
  5. Edit the PHP config file

    1. Open your code editor of choice
    2. navigate to the server/api/_config.example.php file
    3. Rename it to _config.php
    4. Edit the fields as follows
    'user' => 'username'
    'pass' => 'password'
    'host' => 'localhost'
    'database' => dbname

    Where dbname is the name of the database you created earlier, username is your MySQL username, password is your MySQL password. Defaults are root

  6. Start the project. Once started you can view the application by opening http://localhost:3000 in your browser.

    npm run dev