Skip to content

Development of a chat application for ESC101 Project Track

Notifications You must be signed in to change notification settings

7ayushgupta/ESC101-Project-Track

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat Application

ESC101 Advanced Track Project

This project aims to provide basic chat functionality to a certain group of people. This project is for ESC101A (Introduction to Computing).

Mentored by: Govind Gopakumar (@govg)

Deployed On:

Chat-Application

Timeline

  • 25th February: Learnt how Websockets work, and how we require a HTTP server to serve requests from a browser. Used an implementation of a webserver in Python, SimpleWebSocketServer.

  • 27th February: Added basic Frontend elements, still need to figure out the complete Frontend layout. Urgent TODO: Form the backend quickly

  • 1st March: Changing backend server from Python to a NodeJS HTTP Server, front-end remains some. Decision taken due to a lot of shortcomings using a Python backend, such as poor support of handling events, etc. (Would have to use a lot of libraries and still would not have got the required result)

  • 4th March: Basic layout completed, need to add authentication and rooms option needs to be integrated with Frontend. Approximating deadline as 8th March for this.

  • 6th March: Implementing Passport.js for session rememberance, and authentication. Quite a lot of work. Working on Routes, since if authentication is added, the server needs to handle if someone unauthenticated doesn't get sensitive (:P) information.

  • 27th March: Fixed up a lot of things, implemented Passport.js and sessions completely.

  • 10th April: Implememted room-wise history of messages, and improved GUI.

  • 15th April: Deployed the App to Heroku, and wrote some test cases.

Basic File Structure

.
├── chat-app
│   ├── app.js
│   ├── bin
│   │   └── www
│   ├── config
│   │   ├── database.js
│   │   └── passport.js
│   ├── models
│   │   ├── chat.js
│   │   ├── room.js
│   │   ├── roomModel.js
│   │   └── user.js
│   ├── npm-debug.log
│   ├── package.json
│   ├── public
│   │   ├── images
│   │   │   └── user.jpg
│   │   ├── javascripts
│   │   │   └── script.js
│   │   └── stylesheets
│   │       └── style.css
│   ├── routes
│   │   └── index.js
│   ├── test
│   │   ├── database_checks.js
│   │   └── server_checks.js
│   └── views
│       ├── chatroom.ejs
│       ├── error.ejs
│       ├── index.ejs
│       ├── login.ejs
│       ├── rooms.ejs
│       └── signup.ejs
└── README.md

Unit Testing

Tests have been implemented using the Mocha library, and Chai-assertion library.

About

Development of a chat application for ESC101 Project Track

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published