Project

General

Profile

Wiki » History » Version 5

Josip Almasi, 01/11/2021 01:29 PM

1 4 Josip Almasi
{{toc}}
2
3 1 Josip Almasi
h1. Welcome!
4 2 Josip Almasi
5 4 Josip Almasi
External resources:
6
7 2 Josip Almasi
Github page: https://github.com/jalmasi/vrspace
8
9
Facebook page: https://fb.com/vrspace.org
10 3 Josip Almasi
11
Youtube channel: https://www.youtube.com/channel/UCLdSg22i9MZ3u7ityj_PBxw
12
13
VR Days video: https://vimeo.com/475142708
14
15
OpenSource.com article: https://opensource.com/article/20/12/virtual-reality-server
16 4 Josip Almasi
17
h1. Setting up development environment
18
19
Here's all you need to start development on Windows.
20
21
h2. Basic setup
22
23
h3. Git bash
24
25
IDEs can work with github directly, but whatever you ask, you'll get a command line answer.
26
Command line git is simply a must have. Bash also includes a lot of goodies like ssh.
27
28
https://git-scm.com/downloads
29
30
h3. Java
31
32
Java 8 will work, java 11 recommended. Get it either from Oracle or elsewhere, e.g. Zulu OpenJDK: https://www.azul.com/downloads/zulu-community/?package=jdk
33
34
h3. Node.js
35
36
Node is used by IDE to evaluate javascript. You'll also may need it if you modify any of babylon.js source.
37
Mind that IDE will complain if you installed unsupported version of Node; should that happen, remove Node, and install latest one supported.
38
39
Get it from https://nodejs.org/
40
41
h3. IDE
42
43
Eclipse for Java developers (not enterprise), with Spring and Web plugins:
44
45
Download eclipse here: https://www.eclipse.org/
46
47
And then go to Help -> Eclipse Marketplace
48
Search and install Spring Tools 4 and Wild Web Developer plugins.
49
50 5 Josip Almasi
h2. Import and start the project
51
52
In Eclipse, you can use either default or new workspace for the project.
53
Assuming you have cloned the project from the github, 
54
Go to File -> Open Projects From the Filesystem
55
Then choose vrspace directory.
56
57
This will import vrspace folders and project subfolders, click Finish.
58
59
In vrspace project folder, in src/main/java, there's org.vrspace.server.ServerApplication.java.
60
Open it, then right click on the code.
61
From the menu, choose either Run as or Debug as -> Spring Boot App.
62
63
Open http://localhost:8080/babylon/connect.html with two browsers, and navigate around.
64
65
That's all, you're all set!
66 4 Josip Almasi
67
h2. Advanced setup
68
69
h3. Apache
70
71
Apache as reverse proxy provides SSL, which is required for both VR and audio streaming.
72
I.e. browsers don't trust even the localhost, and enforce SSL.
73
74
TBD
75
76
h3. Docker and OpenVidu
77
78
OpenVidu voice/video chat server runs as docker image. This is only required for development of voice chat functions.
79
80
https://docs.openvidu.io/en/2.16.0/deployment/deploying-on-premises/