• Stars
    star
    223
  • Rank 178,458 (Top 4 %)
  • Language
    JavaScript
  • Created over 9 years ago
  • Updated almost 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

HackerNews made with AngularJS 2.0.

hn-ng2

Hacker News made with Angular 2.

I created this to see what it's like to create an AngularJS 2.0 application. I've previously experimented creating a Hacker News clone with AngularJS 1 so this was fun to play with.

Uses:

Made possible thanks to shuhei's work getting AngularJS 2 to work with webpack and babeljs. Thank you!

Also a lot of inspiration and example API usages taken from blacksonic's angular2-es6-todomvc and angular2-es6-starter.

Todo

  • Actually use Firebase's life updating and propogate those changes in the UI.
  • Dynamically load templates to achieve. Desire is to be able to do this: <div ng-include="'/components/hn-item/hn-item--' + (data.type || 'story') + '.html'" />
  • Pre-warm the template cache for production builds.
  • Create and register new pipes (filters) for components.
  • User angular-router 2 when it's available.
  • The angular2 equivalent for ng-bind-html
  • How to create same @Component properties keys and values. So that I can have:
    @Component({
      properties: {
        itemId: 'itemId',
      }
    })
  • Implement recursive <hn-items /> so we can render comment trees.

Develop

  1. npm install
  2. gulp watch
  3. Open http://localhost:8080/.

Build

  1. npm install && bower install
  2. gulp build

License

The MIT License

Copyright (c) 2015 Harry Wolff http://hswolff.com/

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

BetterWeather

An example application to show how to use D3 in a React Native application.
JavaScript
212
star
2

youtube

Code from my YouTube episodes.
JavaScript
152
star
3

votey-uppy

TypeScript
99
star
4

ghost-to-md

A tool to export your Ghost export file to a collection of markdown files.
JavaScript
88
star
5

forgetmenot

Forgetmenot is a self-hosted todo list application that is accessible via web and mobile browser.
JavaScript
45
star
6

github-favorites

Chrome extension that allows you to favorite GitHub repos to save for later instead of adding them to your watch list.
JavaScript
39
star
7

hn-ng

HackerNews made in AngularJS
JavaScript
37
star
8

theconsolelog

A weekly podcast all about JavaScript.
JavaScript
30
star
9

blog-with-nextjs-and-tailwind

JavaScript
24
star
10

dibs

JavaScript
24
star
11

with-lifecycles

An easy way to turn stateless functional components into class components with state and lifecycles.
JavaScript
21
star
12

dencro

TypeScript
18
star
13

mdx-deck-demo

Code for demo of MDX-Deck
JavaScript
16
star
14

create-class-names

A utility to extend the values of a classNames object.
JavaScript
16
star
15

website

My website.
Astro
16
star
16

xdayssince

TypeScript
15
star
17

reacdle

TypeScript
15
star
18

react-everyday

TypeScript
14
star
19

read-time

Calculate how long it will take you to read some text.
JavaScript
14
star
20

activity-logger

Log activities, show the time it takes to complete them.
JavaScript
8
star
21

tree-view-extended

Atom.io package. Extend your tree-view. Add a list of open files, and a list of git modified files.
JavaScript
8
star
22

bringthesalsa

Open source AngularJS application to make hosting a party easier.
JavaScript
7
star
23

blog

My blog and website.
JavaScript
6
star
24

GitHubReactNative

GitHub client written in React Native.
Objective-C
6
star
25

hn-rn

HackerNews made with React Native
JavaScript
4
star
26

tvchat

chatroom application built using React, Redux, Apollo, and GraphQL!
JavaScript
4
star
27

git-directory-deploy

easily deploy a directory to a git branch
JavaScript
3
star
28

Bapit

Bapit - Ball Tap
Swift
3
star
29

lox

Lox implementation written with Deno and TypeScript
TypeScript
2
star
30

hswolff

2
star
31

dotfiles

my dotfiles
Lua
2
star
32

iselectionseasonover

Is Election Season Over?
2
star
33

silly-intro-to-web-dev

HTML
1
star
34

playground

A fun place for me to mess around with new tech.
JavaScript
1
star
35

reasonablejobs

OCaml
1
star
36

what-are-workspaces

JavaScript
1
star
37

internet-paywall

Fun little site made in response to paywalls.
1
star
38

games-com-hackathon

Games.com Hackathon
CoffeeScript
1
star
39

try_git

1
star
40

client-side-project-template

This is my GOTO template for client-side JavaScript heavy websites.
JavaScript
1
star
41

quick-react

quickly make react apps
JavaScript
1
star
42

ReactNativeAndD3Workshop

JavaScript
1
star
43

fetter

Rust
1
star
44

rom-mom

manage your ROMs
Go
1
star