GithubHelp home page GithubHelp logo

sumonst21 / shopping-cart-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from venchenco/shopping-cart-demo

0.0 2.0 0.0 4.48 MB

Demo shopping website that uses blockonomics payments API

Home Page: https://phpcartdemo.blockonomics.co

PHP 41.98% HTML 35.13% CSS 1.93% JavaScript 20.96%

shopping-cart-demo's Introduction

API Docs

Requirements

php, php-sqli and mysql-server
sudo apt-get install php php-sqli mysql-server

Web server supporting php like nginx, apache. For a simple php server you can run
php -S localhost:8000

Setup

Blockonomics merchant setup

  • Complete merchant wizard
  • Set [Your server_url]/shopping-cart-demo/php/callback.php?secret=[your secret] as the callback url
  • Obtain api key from Wallet Watcher > Settings

Server Setup

  • Clone the git repository into the ROOT of your web server.
  • Change the file php/config.php to set your db credentials, blockonomics api key and secret
  • Run your web server
  • Navigate to shopping-cart-demo/php/setup.php in your browser (Should show Database setup is done)
  • Navigate to shopping-cart-demo/index.html in browser and enjoy shopping !

Adding Products

  • Open php/setup.php
  • Find the line that starts with $db_conn->query('INSERT INTO product_table (id, name, code, image, price)
  • Add another line to the VALUES part of the query in the format:
(ID, Product Name, Product Code, Product Image URL,  Project Price)
  • Navigate to shopping-cart-demo/php/setup.php in your browser (Should show Database setup is done)

Removing Products

  • Go to the shopping_cart_demo database in MySQL
  • Go to the product_table table
  • Remove all unwanted rows (the rows correspond to products).

All contributions are welcome. Please create a pull request and we will be happy to merge it in.

shopping-cart-demo's People

Contributors

blockonomics avatar cnu1439 avatar jusasiiv avatar shivaenigma avatar

Watchers

 avatar  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.