Golang News

Golang 新闻 -- 关于 Go 编程语言的精选链接。「Golang News - curated links about the Go programming language.」

  • 所有者: kennygrant/gohackernews
  • 平台: Linux, Mac, Windows
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Golang News

A responsive news website for links about the Go programming language, written in Go. You can see a this website in action at this link:

http://golangnews.com

Gettting Started

The app requires postgresql just now to bootstrap locally (not Mysql). So make sure you have psql installed. The bootstrap process will create a database and settings for you, but you'll need to promote the first user to admin in order to use the site locally.

Go get this app:

go get -u github.com/kennygrant/gohackernews

Then to build and run the server locally, as you'd expect:

go run server.go

or get the fragmenta command line tool (for things like migrations, deploy etc) and run it with that:

go get -u github.com/fragmenta/fragmenta
fragmenta server

App Structure

server.go

This is the entry point main() for the application. It includes packages within src and starts a server.

The src folder

This holds the website assets, actions and views - the meat of the app.

The src/app folder

This contains general app files, resources like pages or users should go in a separate pkg.

The src/users folder

This contains files related to users on the website.

The src/stories folder

This contains files related to stories on the website.

The src/comments folder

This contains files related to comments on the website.

The src/lib folder

lib is used to store utility packages which can be used by several parts of the app.

The src/lib/templates folder

Templates for generating new resources are stored in here and used by fragmenta generate to generate a new resource package, containing assets, code and views for the resource.

主要指标

概览
名称与所有者kennygrant/gohackernews
主编程语言Go
编程语言JavaScript (语言数: 3)
平台Linux, Mac, Windows
许可证MIT License
所有者活动
创建于2015-09-29 21:53:26
推送于2022-01-21 16:29:02
最后一次提交2020-11-05 11:19:03
发布数36
最新版本名称rv1.3.5 (发布于 )
第一版名称v1 (发布于 )
用户参与
星数283
关注者数13
派生数42
提交数232
已启用问题?
问题数45
打开的问题数11
拉请求数2
打开的拉请求数1
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?