Giter Site home page Giter Site logo

ximdex_test's Introduction

Ximdex Test

Clone the project

git clone https://github.com/chrifts/ximdex_test.git

Back end test:

Steps to execute this program

Require PHP version > 5.6 Require a CSV previously well formated (Column order may change), example:

PRODUCT;CATEGORY;COST;QUANTITY
0001002;mobile;643,50€;10
0011002;car;21.000.643€;1
0001002;mobile;643,5€;5
0001002;stickers;0,05€;1.000

Require a JSON previously well formated with the formulas, example:

{
	"categories": {
		"car" : "+12%",
		"outlet": "-1%",
		"bargain": "+5%+1€",
		"home": "+3€-1%",
		"music": "+3.1%",
		"mobile": "+12€",
		"*": "+20%"
	}
}

to run, execute in terminal:

cd <this_project_folder>/back-end/
php init.php <path/to/data.csv> <path/to/formulas.json>

Example:

cd ~/Downloads/ximdex_test/back-end
php init.php ~/Documents/data.csv ~/Documents/formulas.json

Front end test:

Open the file index.html in ./front/buildwith any explorer

or,

run with npm (require Node installed)

cd ./front
npm install
npm start

ximdex_test's People

Contributors

chrifts avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.