All-in-one TWAIN Cloud implementation using Node.js Express web framework
- Clone twain-cloud-express repository
- Make sure that you have Node.js installed
- Run
npm icommand (this will bring in necessary dependencies) - Run
npm startcommand - Open browser and navigate to http://localhost:3000
- Clone twain-cloud-express repository
- Run
docker build -t twain-cloud .command in root folder or the repository - Run
docker run -p 3000:80 twain-cloudcommand (here we map 80 port of the container to local port 3000)
Initial steps:
- Clone twain-direct repository
- Update App.config files of TwainDirect.Scanner and TwainDirect.App projects using the following settings:
<appSettings> <add key="CloudApiRoot" value="http://localhost:3000/api"/> <add key="CloudManager" value="http://localhost:3000"/> <add key="CloudUseHttps" value="no"/> </appSettings>
- Build TwainDirect.Scanner and TwainDirect.App applications
- Start TwainDirect.Scanner app and press
Setup...button - Press
Register Cloud...button to register selected TWAIN scanner with TWAIN Cloud implementation you run locally - Press
Startbutton on main form to connect to TWAIN Cloud and listen for connections
- Start TwainDirect.App application and press
Cloud...button to authenticate with TWAIN Cloud implementation you run locally - Press
Select...button to pick cloud scanner to work with - Press
Scanbutton to acquire an image from TWAIN Direct device