All Projects → croquet → virtual-dom

croquet / virtual-dom

Licence: other
Application framework for real time collaboration using Croquet

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to virtual-dom

worldcore
Croquet-based multi-player game engine
Stars: ✭ 17 (+21.43%)
Mutual labels:  multiplayer, croquet
com.unity.multiplayer.samples.coop
A small-scale cooperative game sample built on the new, Unity networking framework to teach developers about creating a similar multiplayer game.
Stars: ✭ 794 (+5571.43%)
Mutual labels:  multiplayer
ejscript
Embedthis Ejscript
Stars: ✭ 58 (+314.29%)
Mutual labels:  javascript-framework
Framework
Advanced modding framework for multiplayer modifications
Stars: ✭ 21 (+50%)
Mutual labels:  multiplayer
LixD
Lix: Lemmings-like game with puzzles, editor, multiplayer
Stars: ✭ 80 (+471.43%)
Mutual labels:  multiplayer
nakama-defold
Defold client for Nakama server.
Stars: ✭ 58 (+314.29%)
Mutual labels:  multiplayer
Oxide.GettingOverItMP
A multiplayer mod for the game Getting Over It with Bennett Foddy, powered by the Oxide modding framework
Stars: ✭ 33 (+135.71%)
Mutual labels:  multiplayer
XREngine
Immersive infrastructure for everyone. Everything you need to build and deploy scalable realtime 3D social apps and more. 🤖 🚀 👓 🚀 🕹️ 🚀 🧑🏿‍🚀
Stars: ✭ 423 (+2921.43%)
Mutual labels:  multiplayer
voxelsrv
Voxel browser game inspired by Minecraft
Stars: ✭ 49 (+250%)
Mutual labels:  multiplayer
llapi-example
LLAPI Networking sample (Top Down Shooter)
Stars: ✭ 26 (+85.71%)
Mutual labels:  multiplayer
software-inc-multiplayer
A multiplayer mod for Software Inc written in C# for Unity.
Stars: ✭ 17 (+21.43%)
Mutual labels:  multiplayer
LandOfTheRair
Land of the Rair is a full-blown MORPG styled like the MUDs of olde, featuring hours upon hours of gameplay.
Stars: ✭ 20 (+42.86%)
Mutual labels:  multiplayer
HLADM
Half-Life: Alyx: Deathmatch
Stars: ✭ 24 (+71.43%)
Mutual labels:  multiplayer
godothub client
GodotHub Client Class, Multiplayer and network messaging for Godot
Stars: ✭ 16 (+14.29%)
Mutual labels:  multiplayer
cakeMP
An experimental GTA 5 multiplayer mod.
Stars: ✭ 39 (+178.57%)
Mutual labels:  multiplayer
SocketIOUnity
A Wrapper for socket.io-client-csharp to work with Unity.
Stars: ✭ 69 (+392.86%)
Mutual labels:  multiplayer
Remote-Work-and-Study-Resources
Free services, tools, articles and other resources for remote workers and distance learners
Stars: ✭ 49 (+250%)
Mutual labels:  realtime-collaboration
thundernetes
Thundernetes makes it easy to run your game servers on Kubernetes
Stars: ✭ 215 (+1435.71%)
Mutual labels:  multiplayer
gochess
Online real time chess web server using websockets
Stars: ✭ 32 (+128.57%)
Mutual labels:  multiplayer
broken seals
An open source third person action RPG with multiplayer support.
Stars: ✭ 223 (+1492.86%)
Mutual labels:  multiplayer

Croquet Virtual DOM

last modified on 2021-10-26, or Oct 26th, 2021

Introduction

Croquet Virtual DOM is an application framework that helps to develop an application based on the Document Object Model and real time collaboration over the Croquet library.

For basic concepts and examples, please refer to docs/en/vdom.md.html.

Installation

There is exactly one external dependency, which is the Croquet Client library. You can simply copy that library to your local directory:

# mkdir -p croquet; curl -L -o croquet/croquet-latest.min.js https://unpkg.com/@croquet/[email protected]

The -L option specifies to follow redirection. You may copy the file from https://unpkg.com/@croquet/[email protected]/pub/croquet.min.js.

You can also change the script tag of your html file to refer to the latest code at https://unpkg.com/@croquet/croquet. The advantage of copying the file to a local directory is that you can develop your application off the internet.

For those example applications to run, you need to obtain the API key from croquet.io/keys. Once you create an API key, replace "<put your apiKey from croquet.io/keys>" line in apiKey.js with it.

An application can be developed without using npm or additional package manager. You can run the simple http server (written in JavaScript):

# node server.js &

and point your browser to an example such as localhost:8000/apps/text-chat.html. There is an equivalent server written in Python (server.py), for those who don't install Node.js but has Python.

Alternatively, you can specify @croquet/croquet as dependency in package.json and use a bundler. Howeever, the expander code requires the class and method names are retained. Refer to the Deployment section below for more information.

Deployment

When you prefer to create a minified and simplified deployment, you can roll up some files. Add devDependencies to your package.json:

  "devDependencies": {
    "@babel/core": "^7.9.0",
    "rollup": "^2.17.0",
    "rollup-plugin-babel": "^4.4.0",
    "rollup-plugin-terser": "^5.2.0"
  }

run npm install, and run something the following to make a distributable set of minified files in a directory called dist.

mkdir -p dist/examples
mkdir -p dist/src
mkdir -p dist/widgets
cp examples/<your example.js> dist/examples/
npx rollup src/croquet-virtual-dom.js --config rollup.config.js --file dist/src/croquet-virtual-dom.js --format es
npx rollup widgets/widgets.js --config rollup.config.js --file dist/widgets/widgets.js --format es
cp croquet/croquet-latest.min.js dist/croquet/croquet-latest.min.js

Alternative Deployment Scheme

Lately, many apps that use the Croquet Virtual DOM Framework have its own directory. All they need is to load the croquet library and croquet-virtual-dom.js from unpkg.com. Please refer to the description on npmjs.com.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].