infinitypaul / recommendations

Returns product recommendations depending on current weather.

Home Page:https://infinityadeo.herokuapp.com/api/v1/products/recommended/alanta

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Returns product recommendations depending on current weather.

Creator | Demo URL

Tech Stack

  • Laravel
  • Mysql
  • PHP

Download Instruction

  1. Clone the project.
git clone https://github.com/infinitypaul/recommendations.git projectname
  1. Install dependencies via composer.
composer install 
  1. Migrate and seed the Database.
php artisan migrate --seed
  1. Run php server.
php artisan serve

You can also install the Application via Docker:

Pre-requisites

  • Docker running on the host machine.
  • Docker compose running on the host machine.
  1. Clone the project.
git clone https://github.com/infinitypaul/findyourservive.git projectname
  1. Run the testrig.sh file on the Project Root Folder on your terminal/Command Prompt, This script does everything you need to run your this project. It starts up the servers, ensures the database is booted, installs dependencies, runs database migrations, and runs database seeds. These services are exposed to your computer on the standard ports, then you can access your website on http:localhost

Troubleshooting

  • Port number might be already in use, change from 80 to another number in your docker-compose.yml file.
  • If you have any other issues, report them.

Api Usage

Using Get Request:

GET http://localhost/api/v1/products/recommended/:CITY

And Viola, Right In Front Of You Will Be The City Name, The Current Weather Condition Of The City And List Of Recommended Products You Can Buy From, Make Sure You Buy One.

Enjoy!!

About

Returns product recommendations depending on current weather.

https://infinityadeo.herokuapp.com/api/v1/products/recommended/alanta


Languages

Language:PHP 99.5%Language:HTML 0.4%Language:Shell 0.1%