Skip to content

A minimal chat application to showcase Goyave's websocket features

License

Notifications You must be signed in to change notification settings

go-goyave/websocket-example

Repository files navigation

Goyave Logo

Goyave Websocket Example

https://github.com/go-goyave/websocket-example/actions

A minimal chat application to showcase Goyave's websocket feature. This project is based on Gorilla's chat example.

Getting Started

Directory structure

.
├── http
│   ├── controller           // Business logic of the application
│   │   └── ...
│   └── route
│       └── route.go         // Routes definition
│
├── resources
│   └── template             // Static resources
│       └── ...
│
├── test                     // Functional tests
|   └── ...
|
├── .gitignore
├── .golangci.yml            // Settings for the Golangci-lint linter
├── config.example.json      // Example config for local development
├── config.test.json         // Config file used for tests
├── go.mod
└── main.go                  // Application entrypoint

Running the project

First, make your own configuration for your local environment. You can copy config.example.json to config.json.

Run go run main.go in your project's directory to start the server, then open your browser to http://localhost:8080.

Learning Goyave

The Goyave framework has an extensive documentation covering in-depth subjects and teaching you how to run a project using Goyave from setup to deployment.

Read the documentation

pkg.go.dev

License

This example project is MIT Licensed. Copyright © 2021 Jérémy LAMBERT (SystemGlitch)

The Goyave framework is MIT Licensed. Copyright © 2019 Jérémy LAMBERT (SystemGlitch)