Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 943 Bytes

README.md

File metadata and controls

49 lines (33 loc) · 943 Bytes

Retention-curve

This project is a vanilla PHP (7.4+) demo project. This is a sample project for fetching and manipulating data from a CSV file. Developed an object-oriented code, especially considering design thinking to be generic, extendable, easy to maintain by other staff members while thinking about performance.

Highcharts JS library was used to populate the chart using JSON data provided by the simple REST API.

Requirements

  • PHP 7.4 or higher needs to be installed.
sudo apt-get install php
  • PHPunit must be installed to run unit tests
sudo apt install phpunit

Installation

  1. Clone or download this repository
git clone https://github.com/DuminduP/Retention-curve.git
  1. Change directory
cd Retention-curve/
  1. Run unit tests
phpunit
  1. Run PHP inbuild web server
php -S 127.0.0.1:8080

You can see the chart by visiting http://127.0.0.1:8080 on your browsr.