Skip to content

kp-dubbs/24dataCodeTest

Repository files navigation

Build Status Total Downloads Latest Stable Version License

24Data Code Test Project

Description - Code Project Given to by 24Data.

Installation

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).

Usage

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}

PHP Version

5.6 or higher.

Integrated Frameworks / Packages

JS

  • React
  • ReactDOM
  • react-table
  • axios

PHP

  • Laravel
  • PHP Vars to JS Transformer

Short Description of Functionality

  • 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.

About

Code Test Project for 24Data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published