filesite
1 year ago
6 changed files with 50 additions and 0 deletions
@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
|
||||
package-lock.json |
||||
node_modules/ |
@ -0,0 +1,11 @@
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh |
||||
|
||||
# install cloud |
||||
npm i --save @ulixee/cloud |
||||
|
||||
# start cloud |
||||
npx @ulixee/cloud start |
||||
|
||||
echo "Manual url:" |
||||
echo "https://ulixee.org/docs/cloud/" |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh |
||||
|
||||
# install hero |
||||
npm i --save @ulixee/hero |
||||
|
||||
echo "Manual url:" |
||||
echo "https://ulixee.org/docs/hero/" |
||||
|
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
{ |
||||
"dependencies": { |
||||
"@ulixee/cloud": "^2.0.0-alpha.24", |
||||
"@ulixee/hero": "^2.0.0-alpha.24" |
||||
} |
||||
} |
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
import Hero from '@ulixee/hero'; |
||||
|
||||
(async () => { |
||||
const hero = new Hero({ connectionToCore: 'ws://192.168.3.13:1818' }); |
||||
await hero.goto('https://filesite.io'); |
||||
const title = await hero.document.title; |
||||
console.log('Page title', title); |
||||
await hero.close(); |
||||
})(); |
@ -0,0 +1,14 @@
@@ -0,0 +1,14 @@
|
||||
//Documents: https://ulixee.org/docs/cloud/modules/cloud-node#constructor
|
||||
import { CloudNode } from '@ulixee/cloud'; |
||||
|
||||
(async () => { |
||||
const cloudNode = new CloudNode({ |
||||
port: 1818, |
||||
cloudType: 'private' |
||||
}); |
||||
await cloudNode.listen(); |
||||
console.log(`CloudNode started on port ${await cloudNode.port}`); |
||||
})().catch(error => { |
||||
console.log('ERROR starting Ulixee CloudNode', error); |
||||
process.exit(1); |
||||
}); |
Loading…
Reference in new issue