WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

originalmk/archat-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔀 Archat

This application in in alpha stage, some features may not be working correctly or there may be bugs

Simple P2P server (and client - for testing purposes only, client for end user is written in Electron - you can get it there.

Starting

You can use these commands to start client and/or server:

go run . --run client --waddr X.X.X.X:Y --uaddr X.X.X.X:Y
# for example:
go run . --run client --waddr krzyzanowski.dev:8080 --uaddr krzyzanowski.dev:8081

Note that server should be started before running client.

go run . --run server --waddr X.X.X.X:Y --uaddr X.X.X.X:Y
# for example:
go run . --run server --waddr krzyzanowski.dev:8080 --uaddr krzyzanowski.dev:8081

--waddr and --uaddr options are optional, default values are respectively :8080 and :8081 (which is a short form of localhost:8080 and localhost:8081)

--run option is mandatory and may take value of either client or server

Running using Docker

You are provided with Dockerfile inside this repository. You can use it to build your image and run archat-server in a container. This image does not allow to run client, because it does not make sense.

  1. Enter the top directory of this repository (using cd)
  2. Start with building image
docker build -t archat-server .
  1. Now run a container
docker run -d -p 8080-8081:8080-8081 archat-server

You may change exposed ports according to your needs, just remember that they need to be open. Also, be sure to build an image after any code update :)

About

🔀 Simple P2P chat server (for initiating connections)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •