cse 4701 project-1 project phase ii instructions n download xampp l xampp includes: apache, php,...
TRANSCRIPT
![Page 1: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/1.jpg)
CSE 4701
Project-1
Project Phase II Instructions
Download XAMPP XAMPP includes: Apache, PHP, MySQL, and other goodies.
No need to download and install them separately, XAMPP does it all.
Download: https://www.apachefriends.org/download.html FAQs (Includes instructions on how to install it and set it
up): Windows FAQs: https://www.apachefriends.org/faq_windows.html OSX FAQs: https://www.apachefriends.org/faq_osx.html Linux FAQs: https://www.apachefriends.org/faq_linux.html
![Page 2: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/2.jpg)
CSE 4701
Project-2
Project Phase II Instructions
Download Aptana Studio Aptana Studio is a web development IDE rooted on Eclipse.
You can use your preferred IDE for the project, it does not need to be Aptana.
Download: http://www.aptana.com/products/studio3/download.html
You can download Aptana Studio 2, 3 or either as an Eclipse plugin. For the instructions on this guide, we will use the standalone (not the Eclipse plugin) version of Aptana Studio 3.
![Page 3: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/3.jpg)
CSE 4701
Project-3
Project Phase II Instructions
Sample API (Slim Framework) Slim is a PHP micro framework that helps you quickly write
simple yet powerful web applications and APIs. Slim Framework documentation:
http://docs.slimframework.com/ See : TBD
Sample GUI Web-App (for CRUD operations) A sample CRUD (Create, Read, Update, Delete) web-app
that interfaces with the MySQL database to use. See : TBD
![Page 4: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/4.jpg)
CSE 4701
Project-4
Setting up a Sample DB
XAMPP bundles in PhpMyAdmin (http://www.phpmyadmin.net/home_page/index.php)
![Page 5: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/5.jpg)
CSE 4701
Project-5
Set PhpMyAdmin web-app
Go to: http://localhost/phpmyadmin If you don’t use Port 80 – Use http://localhost:
{yourport}/phpmyadmin; where {yourport} is the custom port.
![Page 6: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/6.jpg)
CSE 4701
Project-6
Setting up the Sample API
Add sample_api, to you XAMPP’s htdocs folder With sample_api in place:
Open Aptana Studio (or your IDE) Click File -> Import Select Existing Folder as New Project Select a folder. Navigate to your
C:/xampp/htdocs/sample_api folder Give the project a name Select PHP and Web - Primary as the project types Click on Finish
![Page 7: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/7.jpg)
CSE 4701
Project-7
Sample_gui – customers.php
![Page 8: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/8.jpg)
CSE 4701
Project-8
Sample_gui – employees.php
![Page 9: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/9.jpg)
CSE 4701
Project-9
Sample_api – index.php
![Page 10: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/10.jpg)
CSE 4701
Project-10
Sample_api – index.php
![Page 11: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/11.jpg)
CSE 4701
Project-11
Sample_api – index.php
![Page 12: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/12.jpg)
CSE 4701
Project-12
New sample_gui_v02.zip
sample_gui.zip. now contacts the sample_api via (/customers; /employees) and grabs the result, decodes JSON into a PHP variable, and then loops
The important code there is this: $jsonResponseAllEmployees = http_get("
http://localhost/sample_api/employees", array("timeout"=>1), $info); // Need PCL for this$array = json_decode($jsonResponseAllEmployees);
The function http_get creates a GET request to the URL specified in the first parameter and grabs whatever the response is and stores it into the $jsonResponseAllEmployees
$info variable contains info on the request itself (not the response) in case debugging is necessary
![Page 13: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/13.jpg)
CSE 4701
Project-13
Sample_gui_v02 – customers.php
![Page 14: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/14.jpg)
CSE 4701
Project-14
Sample_gui_v02 – employees.php
![Page 15: CSE 4701 Project-1 Project Phase II Instructions n Download XAMPP l XAMPP includes: Apache, PHP, MySQL, and other goodies. No need to download and install](https://reader035.vdocuments.net/reader035/viewer/2022062304/56649cfa5503460f949cc79e/html5/thumbnails/15.jpg)
CSE 4701
Project-15
Sample_gui_v02 – employees.php