,-----.,--. ,--. ,---. ,--.,------. ,------.
' .--./| | ,---. ,--.,--. ,-| || o \ | || .-. \ | .---'
| | | || .-. || || |' .-. |`..' | | || | \ :| `--,
' '--'\| |' '-' '' '' '\ `-' | .' / | || '--' /| `---.
`-----'`--' `---' `----' `---' `--' `--'`-------' `------'
-----------------------------------------------------------------
Welcome to your IRC project on Cloud9 IDE!
####Dependencies
sudo easy_install flask-socketio
- Feel free to discuss how the provided code works.
- You are not to show to any part of your code --even elided versions of your code-- to anyone.
- If you are looking for help you cannot show your code
- If you are providing help to someone you cannot show your code.
- Feel free to share online resources (other than those that are a direct cut-and-paste solution to his task).
- Feel free to answer questions that are not code based. For ex., I think you created a new workspace and forgot to install flask -> sudo easy_install flask
- Any question/answer exchanges that are entirely in English are fine (i.e., not sharing code snippets).
- Login working -- only people who are logged in can chat.
- Messages stored in database.
- When a user logs in they will see some list of previous messages.
- Search. I can search for a particular term and see the results.
- the chat supports multiple rooms (EXAMPLE CODE: https://bitbucket.org/zacharski/irc.git)
- Users are subscribed to a set of rooms and cannot access rooms that they are not subscribed to.
- When a user searches for something the search takes place only in posts in rooms they are subscribed to
- all tables in 3NF Earn more XP by implementing other features that rely on a db. (for ex, a register an account popup)
Still need to add stuff from Michelle's paper. She scribbled things while he was talking about stuff.
we still need to : cake is great! - do search stuff - make it fail gracefully when user is not in the thing
I'm pretty sure this isn't right. Stuff down there at least. Not running server from .js what.
Welcome to your Node.js project on Cloud9 IDE!
This chat example showcases how to use socket.io
with a static express
server.
-
Open
server.js
and start the app by clicking on the "Run" button in the top menu. -
Alternatively you can launch the app from the Terminal:
$ node server.js
Once the server is running, open the project in the shape of 'https://projectname-username.c9.io/'. As you enter your name, watch the Users list (on the left) update. Once you press Enter or Send, the message is shared with all connected clients.