chipocrudos / sse-go-reactjs

sse server in golango real time chat with reactjs ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSE Realtime chat Golang + ReactJs

Config

copy env.example .env

Change your values

#Api config
CORS=http://localhost:8000,http://localhost:5173,http://localhost:8080
APPIDS=SUPERSECRET

Change VITE variables to match values in a previous file

version: '3.9'

services:
  server:
    build:
      dockerfile: docker/sseapi/Dockerfile
      context: .
      target: final
    ports:
      - 8000:8000
    env_file:
      - .env

  uix:
    build: 
      dockerfile: docker/sseui/Dockerfile
      context: .
      target: final
      args:
        - VITE_SERVERAPI=http://localhost:8000
        - VITE_APPID=SUPERSECRET
    ports:
      - 8080:80

Run

docker compose up

Visit

Enter to url http://localhost:8080

Grateful

About

sse server in golango real time chat with reactjs ui


Languages

Language:TypeScript 52.4%Language:CSS 18.1%Language:Go 18.0%Language:Dockerfile 9.3%Language:JavaScript 1.1%Language:HTML 1.1%