oxi-chat
Table of contents
General Info
This project is a simple chat application written with warp-rs, svelte and postgres.
Requirement
- rust
- llvm/clang
- nodejs
- postgres
- ngrok (optional)
Setup
- Set up your postgresql configuration in .env
- Add your admin's username and password, default it will be admin and 1234
Example of using ngrok as host
- Run ngrok http 3030then copy the ngrok link
- Copy the ngrok link then paste it into client/src/config.ts
- Example: https://6108c614fd28.ngrok.iotoexport let url = new URL("https://6108c614fd28.ngrok.io")insideclient/src/config.ts
- Run npm install && npm run buildinsideclient
- Then run cargo runinsideserver
Current functions
- Encrypted user's info with argon2
- Register and Login
- Send message through websocket
Todo