Coder Social home page Coder Social logo

salejs's Introduction

Cart Widget turning any Site into Shop.

Cart screenshot

Installation

  1. Install NodeJS
  2. Install dependencies npm install
  3. Run server node server.js
  4. Open shop.html in browser.

TODO

  • Add format.js and proper phone number validation.
  • Add mail notification for the user if he provides email.
  • Add ability to set if field required.

Project history

Detailed explanation of every step in the history of the project. Also, there's a git tag 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 add language

  1. Add new language to client/languages.
  2. Add new language to server/languages.

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-widget {@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-widget namespace.

Contributors

  • Arthur Kohansky

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

salejs's People

Contributors

al6x avatar

Watchers

James Cloos 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.