Mirrors Discord chat logs on webpages in a searchable fashion
Docker is used for deployment. First build the docker image:
docker build -t webcord .
Then setup the config file based on the schema defined in src/secrets.rs in JSON, YAML or TOML format.
Then the docker image can be run using this config file:
docker run -it -v $(pwd)/config.toml:/webcord/config.toml -e RUST_LOG=info -p 0.0.0.0:80:$PORT/tcp webcord
where $PORT
is the port you set up in config.toml
.
NodeJS and Rust are used for development.
For developing the client, node 10.17.x is used, along with tools as dev-dependencies in client/package.json
.
To compile the source TypeScript into output (stored in build/main.js
), run just js
.
To compile the source SASS into output (stored in build/style.css
), run just css
.
Since CSS minification is sensitive to classes used in the script, the CSS build depends on the JS build.
For developing the server, rust nightly 1.41+ is required. Run just rust
.
Note that the CARGO_FLAGS
environment variable must be set (can be an empty string) to specify extra flags (such as --release
) to cargo.