Web-based configuration for VR applications
 
 
 
 
 
 
Go to file
Oracle Server 54c9722048 fix errors in redirects on website, don't try to insert null owner, add cd for oracle server 2023-05-21 19:23:07 +00:00
.github/workflows fix errors in redirects on website, don't try to insert null owner, add cd for oracle server 2023-05-21 19:23:07 +00:00
discord_bot added discord bot to this repo 2022-06-22 20:53:44 -04:00
unity_package fix first time errors 2022-11-16 01:07:31 -05:00
velconnect fix errors in redirects on website, don't try to insert null owner, add cd for oracle server 2023-05-21 19:23:07 +00:00
.gitignore update instructions, add docker compose file for autorestart and local build 2023-05-20 20:16:30 -04:00
README.md update port 2023-05-21 00:36:31 +00:00

README.md

VELConnect API Setup

Option 1: Build and run using Docker Compose

cd velconnect
docker compose up -d

and visit http://localhost:8046 in your browser.

This will set up autorestart of the docker image. To pull updates, just run docker compose up -d again.

Option 2: Pull from Docker Hub:

docker run -p 80:80 velaboratory/velconnect

and visit http://localhost in your browser.

or

docker run -p 8000:80 --name web velaboratory/velconnect

to access from http://localhost:8000 in your browser and name the container "web".

Option 3: Build Docker Image:

Make sure you're in the velconnect/ folder.

docker build --tag velconnect .
docker rm web
docker run -p 80:80 --name web velconnect

or run ./rebuild.sh

Option 4: Run Python locally (WSL or native Linux)

  1. cd velconnect

  2. Create pip env: python3 -m venv env

  3. Activate the env . env/bin/activate

  4. Install packages pip install -r requirements.txt

  5. Add config_mysql.py

    • Get from some old server
    • Or copy and fill out the values from config_mysql_template.py
  6. Run ./run_server.sh

    • Or set up systemctl service:

      [Unit]
      Description=VELConnect API
      Requires=network.target
      After=network.target
      
      [Service]
      User=ubuntu
      Group=ubuntu
      Environment="PATH=/home/ubuntu/VEL-Connect/velconnect/env/bin"
      WorkingDirectory=/home/ubuntu/VEL-Connect/velconnect
      ExecStart=/home/ubuntu/VEL-Connect/velconnect/env/bin/uvicorn --port 8005 main:app
      [Install]
      WantedBy=multi-user.target
      
    • Enter the above in /etc/systemd/system/velconnect.service

    • sudo systemctl enable velconnect

    • sudo systemctl start velconnect