Simple ping test for server and client app window.
There is link refernces.
It base on panda3D docs, forum and other sites.
Simple ping test for server and client app window.
There is link refernces.
It base on panda3D docs, forum and other sites.
Work in progress!
By using the inquirer and surrealDB for http rest api testing builds.
To test the builds.
simple setup user and scope test.
export default function App(){ | |
return (<> | |
<label> Hello World! </label> | |
</>) | |
} |
Test build for server in case of the browser client does work correct for testing. As long there headers and json or text for correct format for sql, sign in and sign up.
This is mixed with websocket(not added) and http request rest api to SurrealDB connection or request http for testing.
Manage to get some what working. Required some set up in proxy, plugin and config.
By using the solid-js and gun to help improve and keep it simple.
For reason to choose solid-js is that render once. It does not render all by render when it needed. It did say docs some where.
As well to learn some basic using buildless without compiler.
Like react, preact and vuejs it would render all variables chanage.
// Reference | |
// http://tools.ietf.org/html/rfc6455 | |
// http://www.w3.org/TR/2011/WD-websockets-20110929/ | |
// https://github.com/einaros/ws | |
// https://github.com/Worlize/WebSocket-Node | |
// http://ja.wikipedia.org/wiki/WebSocket | |
// http://www.slideshare.net/You_Kinjoh/javascript-websocket P.68 | |
// http://d.hatena.ne.jp/gtk2k/20120203/1328274962 | |
var log = console.log.bind(console); |
Note that bun runtime js/ts have three types one is normal http fetch request base on https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
The other is 'bun dev' and 'bun bun'. There is docs format for command line. Here for http server fetch request.
It is link from git bun readme.md
https://developer.mozilla.org/en-US/docs/Web/API/Headers
bun run dev (run on package.json as npm comand)
import { | |
Application, | |
Router | |
} from "https://deno.land/x/oak/mod.ts"; | |
const port = 8000; | |
const app = new Application({ | |
logErrors: false | |
}); |
Just simple paste files how simple vue 3 setup on server side.
Notes:
<script type="importmap">
{
"imports": {
"vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.js"
}
}