A simple socket.io chat client and server with a responsive AngularJS/Bootstrap UI.
https://github.com/PanchoPuncho/simple-chat
brew install node
npm install
- If needed, https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
mongod
node src/js/server
Navigate To http://localhost:3000
mongo --host 127.0.0.1:27017
use simple-chat
db.users.find()
- Support at least 2 simultaneous clients
- Supports n-clients
- Left (or right) windows displaying connected usernames
- Left window - collapses when accessed through mobile or other portrait style screen.
- Main panel displaying the chat log
- Displays and distinguishes between sent messages, received messages, and server level messages with updates on connected and disconnected users.
- Chat log should only display the message form the current session (server does not need to push a history)
- Accordingly, only displaying messages from the current session
- Utilize WebSockets for communication
- Using socket.io for real-time communication
- User signup (create a username and password), with authentication
- Using socketio-auth for authentication and MongoDB to store the username, password hash, and user state (active/inactive).
- Tab0:
mongod
- Tab1:
node src/js/server
- Tab3: If
webdriver-manager
is not in the path, runexport PATH="$PATH:./node_modules/.bin"
- Tab3:
sudo webdriver-manager update --standalone --versions.standalone=3.8.0 && sudo webdriver-manager start --versions.standalone=3.8.0
- Tab4:
protractor e2e/protractor.conf.js