Simbol server
A simple HTTP and WebSocket server built on top of Iron and ws. Easily get started with a Simbol app
Quick start
In the root directory of you web project, create a server directory for the Rust server:
Create a Cargo.toml
and add the dependency to it:
[]
= "1.0.0"
Create a main.rs
file in the server/src
directory with the following content:
extern crate simbol;
use thread;
use *;
use *;
This will create and run an HTTP server with the default roots to load:
index.html
from/index.html
- The different files in
/*
- Your assets, such as GLTF files, from
/assets/
- Your built files, such as your JS and CSS, from
/build/
It will also create and run a WebSocket server for the multiVP (social) component of Simbol
Then run it:
cargo run
Contributing
Check out the Contribution guide! If you have any questions, join our community
License
This program is free software and is distributed under an MIT License.