New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sales

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sales

Cart Widget turning any Site into Shop

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
7
-30%
Maintainers
1
Weekly downloads
 
Created
Source

Cart Widget that can be embedded into sites in order to allow its users to buy products and send orders to the site owner.

Step by step explanation how project has been built.

Steps

There's a git tag for every step, use it to see state of project for every step - type git checkout <tag-name> and git checkout master to set project to the latest state.

  • HTML Mockups - html-mockups.

How to install NodeJS

We need it to use LESS, and as our web server.

Don't use NodeJS pre-packaged installer because it will install it with sudo and you don't want that, also don't install it via brew or other package manager because for some reason unknown to me all of them install it somehow wrongly. It's better to built NodeJS from sources.

wget http://nodejs.org/dist/vX.X.X/node-vX.X.X.tar.gz
tar -xzf node-vX.X.X.tar.gz
cd node-vX.X.X
./configure
make
make install

How to install LESS

NodeJS should be installed, then type npm install less -g

How to namespace Twitter Bootstrap styles

Download Twitter Bootstrap http://getbootstrap.com, go to css folder, create bootstrap.less file and copy content of bootstrap.css there (LESS is superset of CSS so it will be fine).

Create file bootstrap-widget.less and put import bootstrap styles into namespace.

.bootstrap {@import "./bootstrap.less";}

Now run LESS and convert it to CSS

lessc bootstrap-widget.less > bootstrap-widget.css

You should get file bootstrap-widget.css with all bootstrap styles put under the bootstrap namespace.

Copyright (c) Alexey Petrushin, http://petrush.in, released under the MIT license.

Keywords

Cart

FAQs

Package last updated on 25 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts