security-union / videocall-rs

teleconference system written in rust
MIT License
1.34k stars 114 forks source link

Add config reader to `start_dev.sh` & basic config #114

Closed BanjoFox closed 11 months ago

BanjoFox commented 12 months ago

Since the app requires environment variables to bet set, I created a config.toml file, and added some code to the setup_dev.sh script to parse those entries. The TOML format was used because that's Rusts preferred syntax.

Also updated the setup_dev.sh script to pull in the websocket_server bin.

TODO:

darioalessandro commented 11 months ago

@BanjoFox how's this PR coming together?

BanjoFox commented 11 months ago

Gave everything a once over one more time, and looks okay to me 🤞 Please feel free to comment or request-changes.

BanjoFox commented 11 months ago

After making the changes requested, I did re-run the script via VS Code and it was able to bring up the server, and give me a login screen.

darioalessandro commented 11 months ago

@BanjoFox can you check if the UI is starting but the backend is crashing due to the failure to connecting to the nats server?

Imo it is ok if it fails as long as we document that people are expected to launch their own nats server locally, you could also look at running nats-server command in standalone mode https://docs.nats.io/running-a-nats-service/introduction/running