source code of my chatapp project
Below is the list of useful files and folders you should know about:
a) App.js: This is the server of the application where connection is extablished, users are created, deleted and altered.
b) Index.html: Landing page of the website with three sections made using Bootstrap Tabs.
c) Package.JSON: Contains the necessary information and list of required node modules.
d) Gruntfile: Configuraiton file for gruntJS to minify the Stylesheet and JavaScript using Uglify and Cssmin.
d) js(dir): Containes the mainApp.js where all the jQuery is written. It also contains a mainApp.min.js which is minified by Grunt
e) css(dir): Contains CSS, SCSS files and maping. it also has minified version of style.css which is again minified by Grunt.
-
Download the source code and put it in a separate directory of your choice.
-
Open package.json and install all the required modules using npm.
example: npm install module-name -
Once you have installed all the moduels, open app.js and change the port according to your convenience in line 10.
-
Start the server by running the following command in command prompt:
node app.js -
now go to "http://localhost:your-port". Congratulations, you have got the app up and running!
-
You can make changes according to your convenience in CSS, JS and index file and create your version of Chatroom on top of this app.