Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GoogleChromeLabs/go-hackernews
A Hacker News client written in Go
https://github.com/GoogleChromeLabs/go-hackernews
Last synced: 13 days ago
JSON representation
A Hacker News client written in Go
- Host: GitHub
- URL: https://github.com/GoogleChromeLabs/go-hackernews
- Owner: GoogleChromeLabs
- License: apache-2.0
- Archived: true
- Created: 2018-10-19T21:47:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-26T00:27:10.000Z (about 6 years ago)
- Last Synced: 2024-08-02T11:16:08.746Z (4 months ago)
- Language: Go
- Homepage: https://gohackernews.com
- Size: 116 KB
- Stars: 83
- Watchers: 7
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
A Hacker News client written in Go
## What is this?
A Hacker News client (yes, another one) written in [Go](https://golang.org/) using [GopherJS](https://github.com/gopherjs/gopherjs).
## What is this built with?
* [GopherJS](https://github.com/gopherjs/gopherjs) to compile Go to JavaScript
* [myitcv.io/react](https://github.com/myitcv/x/tree/master/react) for React bindings
* [JSX](https://godoc.org/myitcv.io/react/jsx) is supported, but this app does not have any :)
* [Humble/Router](https://github.com/go-humble/router) for routing### Additional
* Service Worker added with [Workbox](https://developers.google.com/web/tools/workbox/)
* Hosting on [Firebase](https://www.google.ca/search?q=firebase+hosting&oq=firebase+hosting&aqs=chrome.0.0j69i60l2j69i61j0l2.1327j0j4&sourceid=chrome&ie=UTF-8)## Setup
1. Fork/clone the repo
2. Install packages:```bash
go get -u github.com/gopherjs/gopherjs
go get -u myitcv.io/react myitcv.io/react/cmd/reactGen
go get -u honnef.co/go/js/xhr github.com/go-humble/router
```3. Add GopherJS and ReactGen to PATH:
```bash
export PATH="$(dirname $(go list -f '{{.Target}}' myitcv.io/react/cmd/reactGen)):$PATH"
```4. Create generated files for each component:
```bash
go generate
```5. Build the application:
```bash
gopherjs build --output build/script.min.js --minify
```This will save create `script.min.js` in the `build/` folder. You can use any local testing server in `build/` to boot up the application (for example: `python -m SimpleHTTPServer` if you have Python installed).
## Can I contribute?
Of course you can! Please take a look at the [contributing](./CONTRIBUTING.md) documentation for more info.
## License
Apache 2.0
This is not an official Google product.