It's an real-time chatting web app, that supporting chatting between multiple friends, adding friends, storing chatting history and caching offline message. let's play
Here is my post about this project, which includes project architecture, design and summary
$ docker pull node
$ docker pull redis
$ docker pull mongo
$ docker run --name mongodb --expose 27017 -p 27017:27017 -d mongo
$ docker run --name redis --expose 6379 -p 6379:6379 -d redis
$ docker run -it --name node --link redis:redis --link mongodb:mongodb -p 3000:3000 -p 8080:8080 -p 8989:8989 -v /path/to/your/working/directory/:/app -d node
docker ps -a
then run command docker exec -it <container ID> /bin/bash
(on Mac) to go inside the node containernpm install webpack -g
at the root of the node containerwebpack
from /app to build module bundlenpm install
from /app folder to install all model dependencieshttp://localhost:8080
to sign up JChat anc start to chat with your friends!npm install webpack-dev-server -g
uncomment
in webpack config filewebpack-dev-server --hot --inline
db.users.update( {"_id": ObjectId("56fd8b59226076750236d579")}, { $set : {"friendList" :[ {"id": '', "chID": '', 'userName':'mike', 'userStatus':'online', 'imgSrc':'/images/avatar.ico'}]}})