A simple chat made to play with Distributed actors.
Swift 5.9 is needed (was playing with new Swift Foundations, although removed in the end).
Install brew install postgresql
Open App/swift-chat.xcodeproj
Configure scheme environment for Frontend node to run a database (DB_USERNAME, DB_PASSWORD and DB_NAME)
Run standalone node either through Xcode schemes or using command line tools. You need to provide info on which node and where you want to start, e.g. standalone --host 127.0.0.1 --port 2550.
Additionaly you can start seperate frontend and room nodes to play. Better start with frontend:
frontend --host 127.0.0.1 --port 2550
and then room:
room --host 127.0.0.1 --port 2551
Open swift-chat app on device/simulator. Create participant and room name, and connect. Open another instance on different device/simulator and connect to the room by entering same name.
(no priorities, so no order)
Room, Participant and ParticipantRoomConnections actors would be nice.86 commits
Swift
94.7%
CSS
5.3%
A simple chat made to play with Distributed actors.
Swift 5.9 is needed (was playing with new Swift Foundations, although removed in the end).
Install brew install postgresql
Open App/swift-chat.xcodeproj
Configure scheme environment for Frontend node to run a database (DB_USERNAME, DB_PASSWORD and DB_NAME)
Run standalone node either through Xcode schemes or using command line tools. You need to provide info on which node and where you want to start, e.g. standalone --host 127.0.0.1 --port 2550.
Additionaly you can start seperate frontend and room nodes to play. Better start with frontend:
frontend --host 127.0.0.1 --port 2550
and then room:
room --host 127.0.0.1 --port 2551
Open swift-chat app on device/simulator. Create participant and room name, and connect. Open another instance on different device/simulator and connect to the room by entering same name.
(no priorities, so no order)
Room, Participant and ParticipantRoomConnections actors would be nice.86 commits
Swift
94.7%
CSS
5.3%