orca-validation-node
v1.0.1
Published
How to validate barcode scans using Orca Scan and Node.js
Downloads
5
Readme
orca-validation-node
This is a fully working example of how to validate barcode scans using Orca Scan and Node.js
How it works:
- A user scans a barcode using the Orca mobile app
- They're presented with a form asking for information
- They enter the information and tap save
- The information is sent to your Validation URL
- Your system validates the information entered
If Valid: You return a HTTP 200 with no body and the app save proceeds.
If Invalid: You return JSON error message, the error is presented to the user and save is rejected.
{
"title": "Error",
"description": "Whatever action you need the user to take"
}
Once the user has corrected the error, they tap save and the process returns to point 4.
Install
First ensure you have Node.js installed.
# should return 11 or higher
node -v
Then execute the following:
# download this example code
git clone https://github.com/orca-scan/orca-validation-node.git
# go into the new directory
cd orca-validation-node
# install dependencies
npm install
Run
# start the project
npm start
Troubleshooting
If you run into any issues please open a ticket or chat to us live at orcascan.com
Contributing
To contribute simply:
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
History
For change-log, check releases.
License
Licensed under MIT License © ## History
For change-log, check releases.
License
Licensed under ISC License © Orca Scan, the Barcode Scanner app for iOS and Android.