Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kennygrant/gohackernews
Golang News - curated links about the Go programming language
https://github.com/kennygrant/gohackernews
Last synced: 2 months ago
JSON representation
Golang News - curated links about the Go programming language
- Host: GitHub
- URL: https://github.com/kennygrant/gohackernews
- Owner: kennygrant
- License: mit
- Created: 2015-09-29T21:53:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T16:29:02.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T14:23:02.042Z (7 months ago)
- Language: Go
- Homepage: https://golangnews.com
- Size: 388 KB
- Stars: 279
- Watchers: 13
- Forks: 42
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- my-awesome - kennygrant/gohackernews - 01 star:0.3k fork:0.0k Golang News - curated links about the Go programming language (Go)
README
# 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](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.