Description - Code Project Given to by 24Data.
Download .sh Shell Script file and place into local/server root.
Use .sh Shell Script file in either Linux Prompt
./setup_laravel.sh name_for_new_proj_folder
Or Windows using Cygwin
bash setup_laravel.sh name_for_new_proj_folder
IMPORTANT IF USING WINDOWS USING CYGWIN
If you choose to use Cygwin with Windows, you must make sure you have the appropriate packages:
- bash
- git
Finally, run
npm install
in the new project directory, to download package dependencies. (Doesn't work with Cygwin without patch, so was left out of the shell script).
IMPORTANT: Routes are case-sensitive
If you are running on local...
..and are not using a virtual host
Navigate to: http://localhost/{projDir}/public
..and are using a virtual host
Navigate to: http://{vhost} where vhost points to public folder
..or if hosted on web server
Navigate to: http://{webserver}
5.6 or higher.
JS
- React
- ReactDOM
- react-table
- axios
PHP
- Laravel
- PHP Vars to JS Transformer
- Creates table from JSON file on root directory, defaulting LName Descending.
- Used Property names from JSON as column names, for scalable purposes. (Can inject another JSON file, will generate table)
- Removed frontend sort functionality built in with react-table.
- Created dynamic backend PHP Sort functionality, called using XHTTP Request (axios), to fetch sorted JSON.
- Renders new table with fetched JSON.