1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00
hack-chat-main/README.md

51 lines
2.8 KiB
Markdown
Raw Normal View History

2018-05-18 00:34:50 +08:00
# hack.chat
2018-04-09 11:01:44 +08:00
2018-05-20 08:21:08 +08:00
[hack.chat](https://hack.chat/) is a minimal, distraction-free, accountless, logless, disappearing chat service which is easily deployable as your own service. The current client comes bundled with LaTeX rendering provided by [KaTeX](https://github.com/Khan/KaTeX) and code syntax highlighting provided by [highlight.js](https://github.com/isagalaev/highlight.js).
2018-03-10 15:47:00 +08:00
2018-05-18 00:34:50 +08:00
A list of software developed for the hack.chat framework can be found at the [3rd party software list](https://github.com/hack-chat/3rd-party-software-list) repository. This includes bots, clients, docker containers, etc.
2018-04-19 23:34:58 +08:00
2018-05-20 08:21:08 +08:00
This is a backwards compatible continuation of the [work by Andrew Belt](https://github.com/AndrewBelt/hack.chat). The server code has been updated to ES6 along with several new features including new commands and hot-reload of the commands/protocol. There is also [documentation](documentation/DOCUMENTATION.md) and a [changelog](CHANGELOG.md).
2018-03-10 15:47:00 +08:00
2018-05-18 00:34:50 +08:00
# Installation
2018-03-10 15:47:00 +08:00
2018-05-18 00:34:50 +08:00
## Prerequisites
2018-03-10 15:47:00 +08:00
2018-05-18 00:34:50 +08:00
- [node.js 8.10.0](https://nodejs.org/en/download/package-manager/#windows) or higher
2018-05-20 08:21:08 +08:00
- [npm 5.7.1](https://nodejs.org/en/download/package-manager/#windows) or higher
2018-03-10 15:47:00 +08:00
2018-05-20 08:21:08 +08:00
## Developer Installation
2018-03-10 15:47:00 +08:00
2018-05-18 00:34:50 +08:00
1. [Clone](https://help.github.com/articles/cloning-a-repository/) the repository: `git clone https://github.com/hack-chat/main.git`
1. Change the directory: `cd main`
1. Install the dependencies: `npm install`
2018-05-20 08:21:08 +08:00
1. Launch: `npm start`
2018-03-10 15:47:00 +08:00
2018-05-20 08:21:08 +08:00
If you change the `websocketPort` option during the config setup then these changes will need to be reflected on [line 60 of client.js](https://github.com/hack-chat/main/blob/master/client/client.js#L60).
2018-04-09 11:01:44 +08:00
2018-05-20 09:10:04 +08:00
## Live Deployment Installation
2018-03-10 15:47:00 +08:00
2018-05-20 08:21:08 +08:00
See [DEPLOY.md](documentation/DEPLOY.md)
2018-05-12 00:00:27 +08:00
2018-05-18 00:34:50 +08:00
# Contributing
2018-05-12 00:00:27 +08:00
2018-05-18 00:34:50 +08:00
- If you are modifying commands, make sure it is backwards compatible with the legacy client and you update the documentation accordingly.
2018-05-20 08:21:08 +08:00
- Use [the template](documentation/templateCommand.js) to learn how to create new commands.
2018-05-18 00:34:50 +08:00
- Use two space indents.
- Name files in camelCase.
- Scripts that do not default to strict mode (such as modules) must use the `'use strict'` directive.
2018-05-12 00:00:27 +08:00
2018-05-18 00:34:50 +08:00
# Credits
2018-03-10 15:47:00 +08:00
2018-05-18 00:34:50 +08:00
* [**Marzavec**](https://github.com/marzavec) - *Initial work*
* [**MinusGix**](https://github.com/MinusGix) - *Base updates*
2018-05-20 08:21:08 +08:00
* [**Neel Kamath**](https://github.com/neelkamath) - *Base Documentation*
* [**Carlos Villavicencio**](https://github.com/po5i) - *Syntax Highlighting Integration*
2018-06-04 02:08:35 +08:00
* [**OpSimple**](https://github.com/OpSimple) - *Modules Added: dumb.js & speak.js*
2018-05-20 08:21:08 +08:00
* Andrew Belt, https://github.com/AndrewBelt, for original base work
* [wwandrew](https://github.com/wwandrew), for finding server flaws (including attack vectors) and submitting ~~___incredibly detailed___~~ bug reports
2018-05-18 00:34:50 +08:00
* [Everyone else](https://github.com/hack-chat/main/graphs/contributors) who participated in this project.
2018-05-12 17:19:56 +08:00
2018-05-18 00:34:50 +08:00
# License
2018-05-12 17:19:56 +08:00
2018-05-18 13:35:53 +08:00
This project is licensed under the [WTFPL License](LICENSE).