Skip to content
/ ng2-hunt Public

An angular 2 hack to show hot products from Product Hunt

License

Notifications You must be signed in to change notification settings

m00s/ng2-hunt

Repository files navigation

ng2 - Product Hunt

This is a sample project to hack with the Product Hunt api and have fun with the Angular 2 beta.

Copyright © 2016, Massimiliano Sartoretto

Find me on: alt text alt text alt text

Installation

This project is based on the awesome angular2-webpack-starter.

Clone this repo, npm i to resolve dependencies and npm run to start a webserver listening on http://localhost:3000.

Important

Since this app uses the Product Hunt api you need to provide your own keys to run the code. In the src/platform/environment.ts file you can find the PHKEYS constant that provides api keys application wide (by default it looks for a keys.secret.json in the root directory).

Edit that code to provide your own credentials, the json structure should follow this syntax:

{
  "apiKey": "<your-awesome-api-key>",
  "apiSecret": "<your-awesome-api-secret>",
  "devToken": "<your-awesome-dev-token>"
}

Contributing

The only goal of this project is to learn new stuff about Angular 2, if you learn something cool and would like to share please submit a PR.

About

An angular 2 hack to show hot products from Product Hunt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published