Skip to content

hash-f/omcb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4770aca · Dec 6, 2024

History

8 Commits
Dec 5, 2024
Dec 4, 2024
Dec 6, 2024
Dec 4, 2024
Dec 4, 2024

Repository files navigation

One million checkboxes (lite)

This is a non conforming replica of the original OMCB website. The major difference is that we do not send full state updates periodically. There are some other differences, but this is the primary one.

Because this project not going to get as much traffic as the original one (or any real traffic at all), we have a bot script that can mimic a large number of connected clients

API

The API is written in go. It uses https://github.com/coder/websocket for websockets. The event server is based on the chat server example from coder/websocket.

To run the API you can

cd api/
go mod tidy
go run . localhost:8000
# Or
air localhost:8000

Frontend

The frontend is written in React. It is not built using CRA. To run the frontend you can

cd frontend/
npm i
npx parcel index.html

Bot

The bot is written in go. It create 1000 clients by default and starts sending 1 event per client per second.

cd bot/
go mod tidy
go run .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published