Discover Packages
github.com/mtcw99/disnews
command
module
Version:
v0.0.0-...-bbf8d64
Opens a new window with list of versions in this module.
Published: May 2, 2021
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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.
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
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
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.
Click to show internal directories.
Click to hide internal directories.