chat application for distributed system course
##HOW TO SET UP PROJECT
-
install node
-
to install dependencies
npm install
- if you ever intalled gulp globally and it is outdated remove it first by
npm uninstall --global gulp
- to install typings and gulp
npm install -g typings gulp-cli
- to use intellisense if your editor support
typings install
-
create database name "pokichat" and create user "pokichat" with password "pokichat"
-
to test database connection
gulp test-database-connection
- to create database
gulp create-database
- seed the database
gulp seed-database
- to create user
node genuser.js --username=<username> --password=<password>
- learn about nodejs bluebirdjs expressjs (if you're doing the server) and ejs if you're doing the frontend
and learn about socket.io weather you do whatever end
- to start server at port 3000
gulp serve
- --master
- Fixed server type to master
- --port {port}
- Define server port
- to watch sass file and compile to css
gulp sass-watch
- all data sent for each event must be in JSON format.