GithubHelp home page GithubHelp logo

fttx / barcode-to-pc-server Goto Github PK

View Code? Open in Web Editor NEW
199.0 13.0 83.0 16.51 MB

Barcode to PC server

Home Page: https://barcodetopc.com/

License: GNU General Public License v3.0

TypeScript 63.38% JavaScript 2.82% HTML 16.86% Shell 0.02% NSIS 0.21% Rich Text Format 12.77% SCSS 3.94%

barcode-to-pc-server's Introduction

Barcode to PC server

Links

Server

App

Overview

The project is divided into two modules/folders:

  • electron: contains the core, native dependencies, and helper scripts
  • ionic: user interface

When executing npm commands make sure to change the current directory to electron: cd electron.

Setup

  1. Install the required System dependencies:

    • Node.js v14
    • Python 3
    • If you're building on macOS, run: brew install glib
  2. Clone the repository

    git clone https://github.com/fttx/barcode-to-pc-server/
    cd barcode-to-pc-server
    cd electron
    npm install

If you get errors check these links:

Run

The npm start command:

  • Runs the Electron app in development mode
  • Launches the ionic project in livereload mode

Notes:

  • If you're editing the electron folder, you have to quit the server and run it again. Use the F6 button on Visual Studio Code.
  • If you're using Windows use the PowerShell

Release

npm run build # builds the angular project in prod mode and generates the signed installer for the current platform
npm run publish # same as build, but uploads the installer to GitHub releases
  • To enable the publishing to GitHub releases set GH_TOKEN environment variable and give all the repo permissions
  • The installer will be put in the electron/dist/ folder.
  • If you get sass errors run cd ../ionic && npm rebuild node-sass --force

Code Signing

  1. Set certificateSubjectName or certificateSha1 parameter in the package.json
  2. Connect the physical token (Use the Microsoft Remote Desktop app to share the token with virtual machines)
  3. Run npm run publish

Resources:

Simulate updates

  1. Install minio as explained here
  2. Run ./node_modules/.bin/electron-builder --project ./dist/ -c.compression=store --config.publish.provider=s3 --config.publish.endpoint=http://IP:9000 --config.publish.bucket=test-update

Publishing updates

The server implements electron-update.

To publish an update:

  1. Draft a new release on GitHub and name it v<new version number>
  2. Increase the version number of the package.json
  3. Commit & push the changes
  4. Add a tag and name it v<new version number>
  5. Push the tag
  6. Run npm run publish

Note: for macOS delete the electron/electron-resources/*.rtf folder and run: npm run publish

At this point if all looks good the only thing left to do is to publish the Github release draft.

Translations

Language Contributors
Chinese -
Deutsch Bruno Wenger
Español Juan Manuel
Italiano Francesco Accardi
English Filippo Tortomasi
Arabic Bassam Mawardi

Are you fluent in any other language than English? If you found a typo, or want to help translate Barcode to PC, get in touch here.

barcode-to-pc-server's People

Contributors

frank9615 avatar fttx avatar oschangkai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

barcode-to-pc-server's Issues

Can't scan to third-party software

Excel and Notepad work fine. Can't scan barcode to any field in Inflow Inventory software even after changing all the settings available in Barcode to PC server in Windows.

server connection issue

I recently tried to use this app as it would help tremendously with my job. The issue is i have the server running in windows, both devices connected to the same network and the app on my android fails to discover the server and connect.

Add Settings page

Contents:

  • Enable/disable realtime strokes
  • Select end character
  • Select CSV divider character
  • Server informations

Bonjour doesn't announce all IPs

Eg. when vmware virtual NIC is enabled it gets announced instead of the wifi card.

In the info dialog, all IPs must be listed

Automatically open QR Code url on PC's browser ?

Hi,

Really good work, congratz !!

We would like to adopt your solution as a replacement to webcodecamjs which is also great but QR code detection is not really good using a webcam while smartphones handle it really well.

So, I think this is not available right now but we will be glad if there could be an option to automatically open scanned QR code URL on PC.
This would avoid the need to open new tab + point mouse cursor in address bar.

Regards,

Continue mode

Continue scanning without bothering the user with stop/continue dialog.

Possible implementation: put a timeout inside the dialog

Server won't start (fails with JavaScript error)

New to GitHub, so sorry if this is inappropriate, but struggling to find any other form of support forum for this program!

I installed on Windows 10, and the first run attempt resulted in an instant JavaScript error:

Uncaught Exception
Error: DNSServiceRef is not initialized
   at....(loads of different locations)

Any idea what's going wrong here? This program would be very useful to me, so I hope so!

Thanks!

errorbtp

Communicate over USB ?

It would be also useful if we could pair smartphone to PC over USB instead of network as many office restrict or disable WiFi for security reasons.

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.