disnews

command module
v0.0.0-...-bbf8d64 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

README

disnews

Link aggregation and discussion site written in Go

License

disnews is released under a the GNU Affero General Public License v3.0 a free software copyleft license.

Instructions

You can build and run this program on either bare metal or in a docker container. The Dockerfile is already setup, so just follow the Docker instructions to get it up and running.

Bare-metal
  • Go - Prerequisite (Golang language and tools)
  • go build - Build the program
  • go run . - Run the program directly
  • mkdir db - Make db directory for the database file to store in
Docker
  • Docker - Prerequisite (Docker container)
  • docker build -t mtcw99/disnews:latest . - Build the container
  • docker run -p 8080:8080 mtcw99/disnews - Run the container
Persistent Database
  • docker volume create disnews-db - Create volume
  • docker run -p 8080:8080 -v disnews-db:/root/db mtcw99/disnews - Run with the specified volume
Hot Reload version
  • docker build -f hotreload.Dockerfile -t mtcw99/disnews:latest . - Build but with hotreload.Dockerfile
  • docker run -p 8080:8080 -v disnews-db:/go/src/github.com/mtcw99/disnews/db -v $(pwd):/go/src/github.com/mtcw99/disnews mtcw99/disnews - Run it

Development

  • Use go fmt ./... before submission

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package core provides core functionalities of the disnews web application.
Package core provides core functionalities of the disnews web application.
Package database provides functionalities to interact and set/get information to/from the database.
Package database provides functionalities to interact and set/get information to/from the database.
Package handlers provides HTTP handling functions for http.HandleFunc to use.
Package handlers provides HTTP handling functions for http.HandleFunc to use.

Jump to

Keyboard shortcuts

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