devoid

command module
v0.0.0-...-6427680 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 0 Imported by: 0

README

deVoid

Development

devoid is split into two segments, the server and terminal client. Both reside within the same repo.

In order to contribute, you must get the code, setup a self-signed certificate (for running the server with TLS), and generate some basic data.

Get the Repo

go get github.com/clagraff/devoid

Create devoid directory

mkdir -p ~/.config/devoid
Server Setup

Create cert for server

openssl genrsa -out ~/.config/devoid/devoid.key 2048
openssl req -new -x509 -sha256 -key ~/.config/devoid/devoid.key -out ~/.config/devoid/devoid.crt -days 3650

Create Server Config

echo '{"certPath":"/home/USER/.config/devoid/devoid.crt","entitiesPath":"/home/USER/.config/devoid/entities.json","keyPath":"/home/USER/.config/devoid/devoid.key"}' > ~/.config/devoid/server.json

Create Entities

echo '[{"ID":"7e874935-c241-4a40-8c71-54ac6d6c3eff","Position":{"X":3,"Y":7},"Spatial":{"OccupiesPosition":true,"Stackable":false}},{"ID":"8e50e77b-dca9-4cb8-b228-c127b04442e7","Position":{"X":5,"Y":1},"Spatial":{"OccupiesPosition":true,"Stackable":false}}]' > ~/.config/devoid/entities.go

Run the server

go run cmd/server/main.go ~/.config/devoid/server.json
Client Setup

Create Client Config

echo '{"clientID":"7e874935-c241-4a40-8c71-54ac6d6c3eff","entityId":"7e874935-c241-4a40-8c71-54ac6d6c3eff"}' > ~/.config/devoid/client.json

Run the client

go run cmd/client/main.go ~/.config/devoid/client.json

System Diagram

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
client command
server command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL