A sample websocket chat application in CLJ+TS
  • TypeScript 47.7%
  • Clojure 28.1%
  • Dockerfile 18.3%
  • HTML 5.9%
Find a file
2022-08-18 14:15:12 -05:00
resources Add initial backend and frontend 2022-08-07 15:29:31 -05:00
src Swap from jetty to undertow 2022-08-18 14:14:21 -05:00
.dockerignore Add initial backend and frontend 2022-08-07 15:29:31 -05:00
.env.development Add initial backend and frontend 2022-08-07 15:29:31 -05:00
.gitignore Add initial backend and frontend 2022-08-07 15:29:31 -05:00
deps.edn Swap from jetty to undertow 2022-08-18 14:14:21 -05:00
Dockerfile Add initial backend and frontend 2022-08-07 15:29:31 -05:00
index.html Add initial backend and frontend 2022-08-07 15:29:31 -05:00
LICENSE Add initial backend and frontend 2022-08-07 15:29:31 -05:00
package-lock.json Add initial backend and frontend 2022-08-07 15:29:31 -05:00
package.json Add initial backend and frontend 2022-08-07 15:29:31 -05:00
README.md Update README.md 2022-08-18 14:15:12 -05:00
tsconfig.json Add initial backend and frontend 2022-08-07 15:29:31 -05:00
tsconfig.node.json Add initial backend and frontend 2022-08-07 15:29:31 -05:00
vite.config.ts Add initial backend and frontend 2022-08-07 15:29:31 -05:00

CLJ+TS WebSocket Chat

This is a sample project that implements a websocket chat application with a Clojure/ring/Undertow backend and a TS/React frontend.

Development

You will need both node and the clojure CLI tools installed for development on this project. When both are installed, clone this repo and run npm install && npm run dev. This command will run both the backend and the frontend development server. Open your browser to http://localhost:5173 to see the app.

Production

This project provides a Dockerfile for building and running a production build of the software. The docker exposes the service and frontend over port 8080.

Note that this software is not intended to be used in production. The Dockerfile exists as a sample for other projects.