Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/infinitypaul/recommendations
Returns product recommendations depending on current weather.
https://github.com/infinitypaul/recommendations
Last synced: 11 days ago
JSON representation
Returns product recommendations depending on current weather.
- Host: GitHub
- URL: https://github.com/infinitypaul/recommendations
- Owner: infinitypaul
- Created: 2020-06-22T14:49:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T20:42:19.000Z (almost 2 years ago)
- Last Synced: 2024-10-10T13:09:10.768Z (29 days ago)
- Language: PHP
- Homepage: https://infinityadeo.herokuapp.com/api/v1/products/recommended/alanta
- Size: 468 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Returns product recommendations depending on current weather.
## Tech Stack
* Laravel
* Mysql
* PHP## Download Instruction
1. Clone the project.
```
git clone https://github.com/infinitypaul/recommendations.git projectname
```2. Install dependencies via composer.
```
composer install
```3. Migrate and seed the Database.
```
php artisan migrate --seed
```4. 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
```2. 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](https://github.com/infinitypaul/infinitypaul/issues).## Api Usage
> Using Get Request:
```
GET http://localhost/api/v1/products/recommended/:CITY
```* http://localhost/ is your Base Url, You Can Replace it with yours
* CITY are the cities name in Lithuania eg: akuotai, You can get the available cities here https://api.meteo.lt/v1/placesAnd 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!!