No description
Find a file
2025-04-19 13:59:31 -06:00
src fix password check 2025-04-19 13:59:31 -06:00
.gitignore add target to gitignore 2025-01-27 20:05:51 -07:00
Cargo.lock add debug print showing password hashes + salt 2025-01-30 12:46:50 -07:00
Cargo.toml dont allow space/empty usernames to register 2025-01-30 13:20:36 -07:00
config.json prevent sending of empty messages 2025-02-12 09:24:40 -07:00
README.md add to README, make helper functions 2025-01-31 08:37:38 -07:00
users.tsv more users 2025-04-19 13:58:04 -06:00

StormChat Backend

This is a configurable, (kind of) secure, and fast server for use with the StormClient frontend. WIP, most configuration settings actually do nothing.

Hosting

If you want to host this yourself, you'll need to have Rust and Cargo installed if they aren't already: rustup.rs Then:

  1. Clone this repo with git clone https://codeberg.org/stormyyy/stormchat-backend.git
  2. cd stormchat-backend
  3. cargo run --release

This will only be accessible over the internet if you use a reverse proxy like Caddy, or port forward the port you have configured.

Configuration

Modify whatever values you want in config.json, then start the server.

Response Codes

StormChat has its own response codes for various purposes: RESPONSE_LOGIN_SUCCESS: Successful Login RESPONSE_LOGIN_FAIL: Failed Login RESPONSE_REGISTRATION_SUCCESS: Successful Registration RESPONSE_REGISTRATION_FAIL: Failed Registration