Skip to content

serhat-demir/chatapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chatapp-web

Backend and web client of my realtime chat application

Installation

Note: Before you run this project, nodejs and mysql have to be installed on your computer

Clone project:
git clone https://github.com/serhat-demir/chatapp-web

Client

Change directory to client:
cd chatapp-web/client

Change redirect urls with yours:
index.html -> row 37, 52, 62
chat.html -> row 40, 52, 72

Server

Change directory to server:
cd ../server

Install packages:
npm install

Change database credentials in:
config.js

Run project:
node app.js

Database schema

users table

column type description
user_id integer pk, ai, not null
user_name text not null
user_password text not null

messages table

column type description
message_id integer pk, ai, not null
message_text text not null
message_sender integer fk(users.user_id), not null

Demo

Video

Chat Application Demo on Youtube

Screenshots

login

chat