GithubHelp home page GithubHelp logo

smartshopping's Introduction

SmartShopping Application

It is simple application for crawler products from amz with jan number

Installation

  1. Clone app
git clone https://github.com/thanhtungka91/smartshopping.git
  1. Run app (if you dont have composer, please install php, composer before)
https://getcomposer.org/doc/00-intro.md

Then install php extension

brew search intl
brew install homebrew/php/php71-intl

Then install cakephp and libraies

composer install 
  1. Start App
bin/cake server -p 8765

Then visit http://localhost:8765 to see the welcome page.

Configuration

  1. Configue database Read and edit config/app.php and setup the 'Datasources' and any other configuration relevant for your application.

  2. Create Database a. Create database, please note that need to set utf8 which is used for saving japanese charater latter.

CREATE DATABASE smartshopping
  DEFAULT CHARACTER SET utf8
  DEFAULT COLLATE utf8_general_ci;

b. Create products table

CREATE TABLE `smartshopping`.`products` (
  `product_id` INT NOT NULL AUTO_INCREMENT,
  `product_name` VARCHAR(255) NULL,
  `product_jan` VARCHAR(45) NULL,
  `product_asin` VARCHAR(45) NULL,
  `product_amz_url` VARCHAR(255) NULL,
  PRIMARY KEY (`product_id`));

How to use the application

  1. Copy file jan to smartshopping directory example file
4904740511511
4973512257896
  1. Run crawler http://localhost:8765/crawler

smartshopping's People

Contributors

thanhtungka91 avatar

Watchers

 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.