https://github.com/hypergonial/chat-backend
Chat service backend
https://github.com/hypergonial/chat-backend
Last synced: 3 months ago
JSON representation
Chat service backend
- Host: GitHub
- URL: https://github.com/hypergonial/chat-backend
- Owner: hypergonial
- License: mit
- Created: 2024-09-19T11:10:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-08T20:58:27.000Z (9 months ago)
- Last Synced: 2025-10-22T10:48:45.560Z (6 months ago)
- Language: Rust
- Size: 682 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chat
A small prototype repo I made to see how hard it would be to make a chat application using websockets.
## Why?
Why not?
## Current Features
- User registration & authentication
- Guilds
- Channels
- Message sending & receive
- Attachments (Stored via S3)
- User preference storage
## Usage
Firstly, rename `.env.example` and fill it out by providing valid postgres credentials, MinIO root credentials, and a random string for the session secret.
Then, you need to generate a session token for the admin user in MinIO. To do this, start up the application using `docker compose up` (starting certain components in this state will fail, this is normal) and then
visit `http://localhost:9001` in your browser. Log in using the credentials you provided in the `.env` file, navigate to access keys, and generate a new key. Copy the access key and secret key into the `.env` file.
Then, run `docker compose up` to start the backend, database and MinIO instances.
## Contributing
If you're working with database-related code, set the git hooks directory to `.githooks` using `git config core.hooksPath .githooks`. This ensures that the snapshot for sqlx is up to date.