liuderchi / chattium

💬 A simple chat app powered by service worker and web socket

Home Page:https://derektwliu-chattium.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chattium

Chattium is a tiny chatroom PWA powered by socket.io and create-react-app

Quick Run in Docker Container

docker run --rm -d -p 3000:3000 liuderchi/chattium:latest

Now you can go to locaohost:3000 in browser

Run Locally for Development

git clone https://github.com/liuderchi/chattium.git
cd chattium

// 1. start server
npm i && npm run start:watch

// 2. open another terminal, start client
cd client; yarn && yarn run start

Now you can go to locaohost:3001 in browser

Develop in Docker Container

  1. Clone and run the container
git clone https://github.com/liuderchi/chattium.git
cd chattium
docker run -it --rm -d \
  -p 3000:3000 -p 3001:3001 \
  -v $PWD:/root/chattium \
  liuderchi/chattium:raw-env-node-yarn
  1. start the server in bash
docker exec -it MYCONTAINER sh
~/chattim $ npm i && npm run start:watch
  1. start the client dev server in bash
docker exec -it MYCONTAINER sh
~/chattium $ cd client
~/chattium/client $ yarn && yarn run start

Now you can go to locaohost:3001 in browser

Deploy with Now CLI

cd client && \
  yarn run build:now && \
  rm build/static/js/*.map
cd ../ && now

About

💬 A simple chat app powered by service worker and web socket

https://derektwliu-chattium.now.sh/

License:MIT License


Languages

Language:JavaScript 80.4%Language:HTML 10.8%Language:CSS 8.8%