mirror of
https://github.com/hack-chat/main.git
synced 2024-03-22 13:20:33 +08:00
npm has been pkged with node for awhile now; we neednt list every pkg manager as tehy will know how to use their prefferred
This commit is contained in:
parent
7311729542
commit
775fb26a24
14
README.md
14
README.md
@ -16,23 +16,19 @@ This is a backwards compatible continuation of the [work by Andrew Belt](https:/
|
|||||||
|
|
||||||
1. [Clone](https://help.github.com/articles/cloning-a-repository/) the repository: `git clone https://github.com/hack-chat/main.git`
|
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. Change the directory: `cd main`
|
||||||
1. Install the dependencies using a package manager of your choice:
|
1. Install the dependencies: `npm install`
|
||||||
- npm: `npm install`
|
1. Configure: `npm start`
|
||||||
- yarn: `yarn install`
|
|
||||||
1. Configure: `node server/main.js`
|
|
||||||
|
|
||||||
If you change the `websocketPort` option during the config setup then these changes will need to be reflected on [line 59 of client.js](https://github.com/hack-chat/main/blob/master/client/client.js#L59).
|
If you change the `websocketPort` option during the config setup then these changes will need to be reflected on [line 59 of client.js](https://github.com/hack-chat/main/blob/master/client/client.js#L59).
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
|
|
||||||
1. `cd` into the repository: `cd main`
|
1. `cd` into the repository: `cd main`
|
||||||
1. Start the server with a process manager. For example, with [PM2](https://github.com/Unitech/pm2): `pm2 start server/main.js --name HackChat`
|
1. Start the server: `npm start` with a process manager.
|
||||||
1. Launch: `client/index.html`
|
1. Launch: `client/index.html`
|
||||||
1. (OPTIONAL) If you want to deploy your hack.chat instance to a server, push everything except the `node_modules` directory and install the dependencies using a package manager of your choice:
|
1. (OPTIONAL) If you want to deploy your hack.chat instance to a server, push everything except the `node_modules` directory and install the dependencies (`npm install`).
|
||||||
- npm: `npm install`
|
|
||||||
- yarn: `yarn install`
|
|
||||||
|
|
||||||
You can now run start the server software with a process manager. The client code will need to be copied into your http server directory. If you plan on using SSL to serve the client; you will need to use a reverse proxy, as TLS is not natively supported by the hack.chat server software (this may change in future releases).
|
You can now run start the server software with a process manager like [PM2](https://github.com/Unitech/pm2) (e.g., `pm2 start server/main.js --name HackChat`). The client code will need to be copied into your http server directory. If you plan on using SSL to serve the client; you will need to use a reverse proxy, as TLS is not natively supported by the hack.chat server software (this may change in future releases).
|
||||||
|
|
||||||
# Contributing
|
# Contributing
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user