@konfuzio/capture-vue v0.0.11-pre-release-3
Konfuzio Document View
(Under active development)
White-label app that lets you preview and interact with documents uploaded to Konfuzio Server.

Documentation
The source code documentation for this app is in the docs directory. Take a look here. Also, you can browse the full Konfuzio developer documentation and guide.
Installation
The app requires node and npm to run. It also requires a connection to the Konfuzio Server API version 3. See full Documentation.
1 Clone the repository
You can download the app by cloning this repository or downloading the source code.
git clone git@github.com:konfuzio-ai/konfuzio-capture-vue.git2 Configure the App
There are two modes for running the app: Read Only (default) and Full mode:
Read Only Mode (default)
In this mode, you will have a sample document with annotations that you can only preview. The default API endpoint will be https://app.konfuzio.com and no user account is needed.
Full Mode
If you want to run the widget in full mode to be able to interact with the document by editing annotations, document pages and other functionalities, you will need to have a user account created. Then, you should generate a user Token, by accessing the Konfuzio API version 3 Auth Request and making a request with your username and password. If the account exists, then a Token will be generated that you can copy.
You will also need a Document uploaded and a Document id, and will need to be logged in to Konfuzio before being able to upload the Document. After successfully uploading it, if you want to show it on the Document Validation UI, you can copy the Document id from the URL, as shown in the image below:
You can create a .env file with the user Token and the Document id. And if you want, you can now specify which Document Category to load in the index.html file or in the .env.
You can create an environment variables file .env on the root of the repository based on the .env.example for specifying various options, especially the API endpoint, the user Token, the Document and Category to load, and the default language of the app.
Please be aware that any variable in the .env will have priority from the variables defined in the index.html.
3 Install all packages
Install all the dependencies by running:
npm install4 Run the App
Local Development
If you want to serve the app locally to run on a browser (default URL: http://localhost:3000) you should run:
npm run serveDeploy
If you want to deploy this app in a web server environment then you should run:
npm run buildWhen succeeded, you should export the dist folder generated from that command to the destination source in the host server and configure the web server engine in order to have the index.html file as the entry point. If everything is correctly configured you should be able to open the server URL and the app will load.
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago