1.5.0 • Published 3 years ago

product-catalog v1.5.0

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

product-catalog

Efficient lodash backed, package.json formatted digital downloads product-catalog with minimal requirements and maintenance.

Concept

Are product catalogs secret information... or public? A public product catalog, especially one stored in a public globally accessible network, can become your public API. In context of affiliate networks and helping new-comers seed their own product databases, the product-catalog model is priceless.

  1. clone or fork
  2. rename to something meanigful (ex. fantasyui-com-product-catalog)
  3. Edit/Add Products

Structure

{
  "deleted": false, // you must explicitly state that the record is not deleted

  "title": "Shodan", // full product name in proper case
  "name": "shodan", // npm friendly name, no spaces, all lowercase

  "description": "Beautiful lightweight theme with hundreds of components",
  "version": "1.0.0",

  "currency": "usd", // valid currency code

  // listing properties as bool for ease of filtering
  "popular": true,
  "featured": false,

  "author": "Fantasy User Interface - Motion Picture Quality Bootstrap 4 Fantasy UI Kits",
  "authorId":"fantasyui-com", // id or username of the seller

  "homepage": "http://fantasyui.com/demo/shodan/content/product-intro/",

  // url to public product demo
  "demo": "http://fantasyui.com/demo/hal/content/product-intro/",

  // direct link to image, keep this on a CDN
  "screenshot": "http://fantasyui.com/demo/hal/content/product-intro/images/product-intro.jpg"

  // additional screenshots, must be array
  "screenshots": [
    "http://fantasyui.com/demo/mega-bundle/screenshot.jpg",
    "http://fantasyui.com/demo/mega-bundle/aardwolf/content/product-intro/images/product-intro.jpg",
    "http://fantasyui.com/demo/mega-bundle/nanook/content/product-intro/images/product-intro.jpg",
    "http://fantasyui.com/demo/mega-bundle/minerva/content/product-intro/images/product-intro.jpg"
  ],

  // price in cents
  "licensing": [
    { "type": "Single", "amount": 15000 },
    { "type": "Multiuse", "amount": 150000 },
    { "type": "Extended", "amount": 1500000 }
  ],

  // the property bag holds product details
  "properties": [

    { "label": "Product Type", "text": "HTML Template" },
    { "label": "Release Date", "text": "January, 2016" },
    { "label": "Last Updated", "text": "March, 2017" },
    { "label": "File Types", "text": "HTML, CSS" },
    { "label": "File Size", "text": "Under 5MB" },

    { "label": "Layout Columns", "text": "Variable" },
    { "label": "Responsive Layout", "text": "Yes" },
    { "label": "Fluid Layout", "text": "Yes" },
    { "label": "Fixed-width Layout", "text": "Yes" },

    { "label": "Less", "text": "No" },
    { "label": "Sass", "text": "No" },
    { "label": "PostCSS", "text": "Yes" },

    { "label": "Min Browser", "text": "IE 9, 10, 11 Latest Chrome Latest Firefox Latest Safari" },
  ],

  // basic tag printing
  "tags": [ "modern", "bootstrap", "bootstrap 4" ]


}

API

Installation

Clone this repository, customize and include in your project.

Usage Example

console.log( 'ACTIVE:', db.filter(['deleted', false]).result().map(item=>item.name) );

console.log( 'DELETED:', db.filter('deleted').result().map(item=>item.name) );
1.5.0

3 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago