Giter Site home page Giter Site logo

merchant-cart's Introduction

Introduction

This is Merchant Cart demo of Music Festival for Inventory Management

Pre-requisites

Create EC2 instance and enable port 8655 in security group to run your application in EC2.

Setup in EC2

To install NodeJS :

	$ curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash โ€“
	$ sudo apt-get install nodejs

To install Postgres :

    $ sudo apt-get update
    $ sudo apt-get install postgresql postgresql-contrib

Install NodeJS process Manager

$ npm install pm2 -g

Adding application to EC2 instance:

Copy webapp folder to your EC2 instance.

 $ scp -i <pem file> -r webapp <EC2-instance-url>

Install node dependencies in your EC2 instance.

 $ cd webapp
 $ sudo npm i

Run the application

Goto following folder: webapp Run the server in EC2 instance with : pm2 start

Setup in Dragonboard 410c :

For serial communication you run the following command in Dragonboard 410c :

    $ pip install pyserial 

Modify Configuration file as per your environment

Please, change the required highlighted configuration in the folder : inventory_management/config.json

{
    "usb_setting" : "/dev/ttyUSB0",
    "sensor_count": "5",
    "url_connect" : "http://<EC2-instance-IP>:8655/api/updateItem",
    "response_time": "60",
    "apn": "airtelgprs.com",
    "username": " ",
    "password": " ",
    "auth_id":"0"
}

Run the application :

Run the following command in Dragonboard 410C

 $ python main.py

merchant-cart's People

Contributors

pn-ramya avatar rakesh-sankar avatar jinka2015 avatar akshaykulkarni09 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.