golang-first-pet

command module
v0.0.0-...-8db6ce2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

golang-first-pet

My Golang First Pet project

Folder structure

.
├── app
│   ├── controllers
│   │   ├── chat.go
│   │   ├── index.go
│   │   └── qrcode.go
│   ├── models
│   │   ├── client.go
│   │   ├── message.go
│   │   └── room.go
│   ├── route
│   │   └── route.go
│   ├── shared
│   └── views
│       ├── layouts
│       │   ├── footer.gohtml
│       │   └── header.gohtml
│       ├── pages
│       │   ├── chat.gohtml
│       │   └── qrcode.gohtml
│       └── view.go
├── config
│   └── config.go
├── config.yml.example
├── deployment
│   └── local-mac
│       └── docker-compose.yml
├── Dockerfile
├── go.mod
├── go.sum
├── LICENSE
├── main.go
├── README.md
├── static
│   ├── js
│   │   ├── chat.js
│   │   └── jquery.min.js
│   └── style
│       └── chatbox.css
├── tree.txt
└── utils
    ├── http
    │   └── http.go
    ├── logger
    │   └── logger.go
    ├── math
    │   └── math.go
    └── network
        └── network.go

Installation

  1. Create config file
cp ./config.yml.example ./config.yml
  1. Edit values of some variables in config.yml
host: <server_ip>
port: <server_port>
lifetime: <lifetime_of_an_message>

Start application

  1. On host machine (not containerized)
go run main.go
  1. Containerize using Docker
cd ./deployment/local-mac
docker-compose up --build

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL