A full stack LAMP & React shopping cart app
- React.js
- Webpack 4
- Bootstrap 4
- PHP
- MySQL
- CSS3
- HTML5
- AWS EC2
- PHP 7.2
- NPM
- MySQL 8.0
-
Clone the repository
git clone https://github.com/christianparizeau/pizza-stop cd pizza-stop
-
Install all dependencies with NPM.
npm install
-
Create a database in MySQL
- phpmyadmin (Recommended)
- Log into phpmyadmin
- Create a new table (remember this name)
- CLI
- In your terminal type to login, where username is your MySQL username. Default is root
mysql -u username -p
- Enter your password for MySQL. Default is root
- Create a new Database, replace dbname with your choice name for the database
CREATE DATABASE dbname;
-
Import the example database to MySQL
npm run db:import
-
Edit the PHP config file
- Open your code editor of choice
- navigate to the server/api/_config.example.php file
- Rename it to _config.php
- 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
-
Start the project. Once started you can view the application by opening http://localhost:3000 in your browser.
npm run dev