Skip to content

gurkanucar/socketio-simple-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

Socket io chat example backend and frontend

##Tech Stack

Spring Boot

React

SocketIO

H2 db

Example Images

example

example

Example Video:

https://www.youtube.com/watch?v=y7jnF7MuNLI

BACKEND

Spring Boot

Netty Socket IO: socket server

H2 db: socket server

How to run

  git clone https://github.com/gurkanucar/socketio-simple-chat

run

  cd backend
  
  mvn spring-boot:run

Note that!

You have to configure ip and port details from "application.properties" file.

socket-server.host=192.168.0.10 // write your ip address not local host

FRONTEND

Used Packages

SocketIO: socket io client (must be version 2)

React icons: icon package

How to run

  git clone https://github.com/gurkanucar/socketio-simple-chat
  cd socketio-simple-chat
  cd frontend

install packages

  npm install

run app

  npm start

Note that!

You have to configure ip and port details from "apiConstants" file.

export const SOCKET_BASE_URL = "http://192.168.0.10:8085"; // write your ip address not local host

export const API_BASE_URL = "http://192.168.0.10:8080"; // write your ip address not local host

About

Spring boot - react - socket io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published