A small web app built using PHP, React, and Webpack
Working within the install directory...
- Serve the api on port 8010
php -S localhost:8010 - Install node modules
npm install - Compile and serve web app
npm start - Navigate to http://localhost:8020
- The webapp after the initial AJAX call to the api_db.sqlite database. To add an entry, click on the blue add button.
- Then fill out the form and click submit.
- To delete an entry, click the red delete button.
- Then click on the delete button that corresponds to the row that you would like to delete.
The API is built using a set of php scripts, all contained in the api/ directory.
http://localhost:8010/api/device/read.php
GET request that returns a JSON object of all rows in the api_db.device table
http://localhost:8010/api/device/create.php
POST request that adds an entry into the api_db.device table
http://localhost:8010/api/device/delete.php
POST request that deletes an entry from the api_db.device table



