Skip to content

Naphann/POKi-chat-app

Repository files navigation

POKi-chat-app

chat application for distributed system course

##HOW TO SET UP PROJECT

best use in vscode with intellisense

  1. install node

  2. to install dependencies

npm install
  1. if you ever intalled gulp globally and it is outdated remove it first by
npm uninstall --global gulp
  1. to install typings and gulp
npm install -g typings gulp-cli
  1. to use intellisense if your editor support
typings install
  1. create database name "pokichat" and create user "pokichat" with password "pokichat"

  2. to test database connection

gulp test-database-connection
  1. to create database
gulp create-database
  1. seed the database
gulp seed-database
  1. to create user
node genuser.js --username=<username> --password=<password>
  1. 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 USE GULP

  1. to start server at port 3000
gulp serve
Arguments
  • --master
    • Fixed server type to master
  • --port {port}
    • Define server port
  1. to watch sass file and compile to css
gulp sass-watch

Socket.io NOTES

  • all data sent for each event must be in JSON format.

About

chat application for distributed system course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •