chat-app
chat-app is a chatting application built with Node v3 and Socket Programming. It allows users to chat with one another in a fun chat room. The application provides a join page at the beginning, which requires a display name and a room name. Display name is the chat name that is associated with your user. The room name serves as the object that defines your room. It helps to think of it as a password for your room. In order for users to join the same chat rooms, they must have identical room names.
Key Items
- Sockets
- Geolocation API
- Moment.js (added through CDN)
- Mustache.js (added through CDN)
Installation
I'm assuming you have downloaded Node and npm onto your computer. If not, then download Node and npm here. By downloading the node version for your computer, both node and npm command should be useable through your terminal/prompt.
Windows: https://treehouse.github.io/installation-guides/windows/node-windows.html
Mac: https://treehouse.github.io/installation-guides/mac/node-mac.html
Node rocks 💚 !
- Clone chat-app github repo
git clone https://github.com/fopineda/chat-app.git
- Enter the chat-app directory
cd chat-app
- Install node modules/dependencies
npm install
- Run your chat app 🙃
npm start
- If no errors came up, then the app should be running on your local machine (computer). Go to http://localhost:3000/ on your browser.
Note: If you want to run the app in dev mode, then run "npm run dev" instead of "npm start" for step 4. Dev mode is just normal mode with nodemon activated.
Demo
Link: https://pineda-chat-app.herokuapp.com/
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.