31 lines
918 B
Markdown
31 lines
918 B
Markdown
# Backend for Minimal Non-Persistent chat
|
|
|
|
Built in TypeScript 4.5 with rollup
|
|
|
|
## Install
|
|
|
|
Run the command `yarn install`
|
|
(or the equivalent in your package manager of choice).
|
|
|
|
## Build
|
|
|
|
Run the command `yarn build`
|
|
(or the equivalent in your package manager of choice).
|
|
|
|
This will run rollup with the project's `rollup.config.js`.
|
|
Alternatively, you can run rollup manually without a package manager.
|
|
(cf. [rollup's guide](https://rollupjs.org/guide/) for a how-to)
|
|
|
|
## Run
|
|
|
|
Run the command `yarn start`
|
|
(or the equivalent in your package manager of choice).
|
|
|
|
The compiled script does not take any parameters.
|
|
Any configuration needs to be done in-source, before the [building step](#build).
|
|
|
|
This will run the compiled JavaScript file with the environment's `node` executable.
|
|
Alternatively, manually run `<your node path>/node ./server.node.bundle.js`
|
|
|
|
|
|
#### This package has only been tested on Linux.
|