/DAPA

DAPA Chat Client

Primary LanguageJava

DAPA-SERVER

Requirements

  • Java 8
  • MySQL Server

External Dependencies

MySQL Tables

CREATE TABLE `channels` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`channel_id` VARCHAR(50) NOT NULL DEFAULT '0',
	`name` VARCHAR(255) NOT NULL DEFAULT '0',
	`display_name` VARCHAR(255) NOT NULL DEFAULT '0',
	PRIMARY KEY (`id`),
	UNIQUE INDEX `Index 2` (`name`)
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB
CREATE TABLE `users` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`user_id` VARCHAR(50) NOT NULL DEFAULT '0',
	`display_name` VARCHAR(255) NOT NULL DEFAULT '0',
	`username` VARCHAR(50) NOT NULL DEFAULT '0',
	`password` VARCHAR(255) NOT NULL DEFAULT '0',
	PRIMARY KEY (`id`),
	UNIQUE INDEX `Index 2` (`user_id`)
)
COLLATE='latin1_swedish_ci'
ENGINE=InnoDB

Ngnix

If you wish to use the server using a reversed proxy with Nginx the following configuration can be used. You can then connect using ws://example.com/chat

server {
	server_name example.com;
	location / {
		try_files $uri $uri /  = 404;
	}
	location / chat {
		proxy_pass http: //127.0.0.1:yourport/chat;
		proxy_http_version 1.1;
		proxy_set_header Upgrade $http_upgrade;
		proxy_set_header Connection 'upgrade';
		proxy_set_header Host $host;
		proxy_cache_bypass $http_upgrade;
	}
}

Commands

Private message

  • Syntax: "/t 'username' 'content'"
  • Example: "/t R2D2 beepboop" would whisper 'beepboop' to the user 'R2D2'

Credits

We thank the following authors for allowing us to use their art & imagery for our project.

And the following contributors

  • Joachim Dalen