A dead simple real time webchat with authorization using websockets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
908 B

2 years ago
## gochat
### A dead simple real time webchat with authorization using websockets
### Building
`make` or `cd src/ && go build && mv gochat ..`
### Project structure
As you are probably here for reconnaissance reasons for your own project here's a
quick overview of the structure:
- `pages` -> html pages
- `scripts` -> js files where chat.js is the "heavy-lifter" which actually implements the websocket chat logic
- `static` -> icon, stylesheet for pages
- `src/api` -> the fundament of backend logic, authorization, database and websocket handling,all necessary structs, constants
- `src/log` -> a custom logger
- `src/page` -> a shorcut function for handling html templates
- `src/server` -> the main server struct that glues everything together. For a high-level inspection - refer there
- `src/main.go` -> parse command line flags, set up logging and leave the rest for the server
### License
GPLv3