This is a sample project to hack with the Product Hunt api and have fun with the Angular 2 beta.
Copyright © 2016, Massimiliano Sartoretto
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
.
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>"
}
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.