Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liuderchi/chattium
💬 A simple chat app powered by service worker and web socket
https://github.com/liuderchi/chattium
create-react-app now-cli react-modal service-worker socket-io
Last synced: 2 months ago
JSON representation
💬 A simple chat app powered by service worker and web socket
- Host: GitHub
- URL: https://github.com/liuderchi/chattium
- Owner: liuderchi
- License: mit
- Created: 2018-05-13T06:41:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T00:36:23.000Z (about 2 years ago)
- Last Synced: 2023-08-07T07:11:22.083Z (over 1 year ago)
- Topics: create-react-app, now-cli, react-modal, service-worker, socket-io
- Language: JavaScript
- Homepage: https://derektwliu-chattium.now.sh/
- Size: 1.97 MB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chattium
Chattium is a tiny chatroom PWA powered by socket.io and create-react-app
## Quick Run in Docker Container
```bash
docker run --rm -d -p 3000:3000 liuderchi/chattium:latest
```Now you can go to `locaohost:3000` in browser
## Run Locally for Development
```sh
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
```bash
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
```2. start the server in bash
```bash
docker exec -it MYCONTAINER sh
~/chattim $ npm i && npm run start:watch
```3. start the client dev server in bash
```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](https://github.com/zeit/now-cli)
```sh
cd client && \
yarn run build:now && \
rm build/static/js/*.map
cd ../ && now
```