Giter Club home page Giter Club logo

gohackernews's Introduction

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.

gohackernews's People

Contributors

kennygrant avatar cj-malone avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.