Submit templates for repl.it/templates here.

← Back to all posts
Chatting App Template - Template Jam
snowboardsheep

Simple Chatting App Template

Build a Chatting Application with Node, Socket.io, and Express

About

This template is based off of a previous project I created, called Sendverse (https://github.com/liam-ilan/sendverse). If you are interested in this, you might want to check it out.

This template is written in Node, with an Express server, and Socket.io to handle messages.

How to use

Navigating this template is simple. index.js in the root directory contains the server-side code. The public directory contains the html, css, and javascript for the actual page. Both of these parts can operate independently, allowing you to create whatever you want.

Socket.io listens on message for for JSONs in the following format:

The messages are emitted in the same way.

Ideas

No template is good without a few ideas. Here are a couple:
1. Use other people's templates to extend this.
2. Maybe make this look nicer, as this is pretty barebones.
3. Connect a database to this, so that messages can be remembered.

Please comment if you made anything with this! It would be really cool to see if anyone makes something with this!

One final note

Song: Break My Stride, Matthew Wilder
All software written by Liam Ilan

Voters
floribert10
G0RG3
Leroy01010
andrewmeireplit
snowboardsheep
Comments
hotnewtop
andrewmeireplit

Wow! This is so cool!

Leroy01010

nice