- download composer from this link (https://getcomposer.org/download/)
- after cloning project go to project path and run this command composer install
- create database and put its name in .env file to DB_DATABASE
- Run this command php artisan migrate
To Run this Code by Using API for Creating Campaign and UI to figure out chart
APIs:
Create new Campaign with body [POST]
{
"name":{"campaign-name"},
"country":{"campaign-country"},
"budget":{"campaign-budget"},
"goal":{"campaign-goal"},
"category":{"campaign-category"}//optional choice
}
the API path curl:{host-name}/public/campaign/createget the campaigns data with dimensions related to draw chart [GET]
curl:{host-name}/public/campaign/get?x={dimensionX}&&y={dimensionY}
Drawing Chart UI:
- go directly to path
{host-name}/public/campaign/chart