Git Product home page Git Product logo

uv-hello-world's Introduction

๐Ÿ‘‹ ๐ŸŒŽ

This uses UV v3, for v4 examples use https://github.com/UniversalViewer/uv-examples

Prerequisites

Once these are installed, clone this repository to your file system, then run the following commands in your terminal:

cd uv-hello-world
npm install
npm start

Then browse to localhost:5000. (You can run the UV on regular port 80, we're just using 5000 to test on localhost).

Video guide: https://youtu.be/wHK5DmMYXZE

uv-hello-world's People

Contributors

edsilv avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

uv-hello-world's Issues

Failed to load resource: the server responded with a status of 404 (Not Found)

Hi,
sorry for this basic question but I am new to servers I am running a Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-124-generic x86_64) server were I have install Ngnix and apache2 in port 80 and 1080. I've install UV using the following commands as written in the instructions:

xxx@xxx:/var/www/html/uv-hello-world$ sudo npm install 
npm WARN lifecycle [email protected]~postinstall: cannot run in wd [email protected] npm run copy (wd=/var/www/html/uv-hello-world)
audited 36 packages in 0.662s
found 6 vulnerabilities (3 low, 3 high)
  run `npm audit fix` to fix them, or `npm audit` for details
xxx@xxx:/var/www/html/uv-hello-world$ sudo npm audit fix
+ [email protected]
added 4 packages from 6 contributors, removed 4 packages and updated 16 packages in 1.703s

2 packages are looking for funding
  run `npm fund` for details

fixed 6 of 6 vulnerabilities in 36 scanned packages
xxx@xxx:/var/www/html/uv-hello-world$ sudo npm start

> [email protected] start /var/www/html/uv-hello-world
> npx serve -p 5000

npx: installato 78 in 3.901s
ERROR: Cannot copy to clipboard: Couldn't find the required `xsel` binary. On Debian/Ubuntu you can install it with: sudo apt install xsel

   โ”‚                                                   
   โ”‚   Serving!                                        
   โ”‚                                                   
   โ”‚   - Local:            http://localhost:5000       
   โ”‚   - On Your Network:  http://1xx.xxx.xxx.xx:5000   
   โ”‚                                               

Opening my Network I see a blank page using developer tools and inspecting the console I see the following errors:

offline.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
helpers.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
uv.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
uv.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)

What I did wrong? Thanks for your help.

Giacomo

getThumbs will be deprecated, use getThumbnails instead

I have installed this on my iipserver. Downloaded the example manifest file from http://wellcomelibrary.org/iiif/b18035723/manifest and put it on my own server.
Downloaded the latest uv-alpha, compiled it, and put also on the same server. Modified the index.html to point to the local (copied) manifest.
When I open the http://server/index.html on in my local workstation browser, it works. But I get the warning message "getThumbs will be deprecated, use getThumbnails instead" in the console(F12) in edge windows 10. I also get the same warning in IE.

"npm i" not finishing successfully

I'm getting this error when I'm running "npm i":

npm WARN lifecycle [email protected]~postinstall: cannot run in wd %s %s (wd=%s) [email protected] rm -rf uv && cp -R node_modules/universalviewer/uv uv /root/uv-hello-world

If I just run "cp -R node_modules/universalviewer/uv uv" by hand in /root/uv-hello-world, then it works fine.

Failed to load resource: the server responded with a status of 404 (Not Found)

Hi,
sorry for this basic question but I am new to servers I am running a Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-124-generic x86_64) server were I have install Ngnix and apache2 in port 80 and 1080. I've install UV using the following commands as written in the instructions:

xxx@xxx:/var/www/html/uv-hello-world$ sudo npm install 
npm WARN lifecycle [email protected]~postinstall: cannot run in wd [email protected] npm run copy (wd=/var/www/html/uv-hello-world)
audited 36 packages in 0.662s
found 6 vulnerabilities (3 low, 3 high)
  run `npm audit fix` to fix them, or `npm audit` for details
xxx@xxx:/var/www/html/uv-hello-world$ sudo npm audit fix
+ [email protected]
added 4 packages from 6 contributors, removed 4 packages and updated 16 packages in 1.703s

2 packages are looking for funding
  run `npm fund` for details

fixed 6 of 6 vulnerabilities in 36 scanned packages
xxx@xxx:/var/www/html/uv-hello-world$ sudo npm start

> [email protected] start /var/www/html/uv-hello-world
> npx serve -p 5000

npx: installato 78 in 3.901s
ERROR: Cannot copy to clipboard: Couldn't find the required `xsel` binary. On Debian/Ubuntu you can install it with: sudo apt install xsel

   โ”‚                                                   
   โ”‚   Serving!                                        
   โ”‚                                                   
   โ”‚   - Local:            http://localhost:5000       
   โ”‚   - On Your Network:  http://1xx.xxx.xxx.xx:5000   
   โ”‚                                               

Opening my Network I see a blank page using developer tools and inspecting the console I see the following errors:

offline.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
helpers.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
uv.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
uv.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)

What I did wrong? Thanks for your help.

Giacomo

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.