https://quickhunt.herokuapp.com/
This app uses the Product Hunt API to enable the user to search for products by topic. In the results, the user sees the name, tagline, description, review rating and vote count for the product. When the user clicks on the thumbnail associated with the product, the user is directed to the product listing on the Product Hunt website.
-
Download or clone this project using
git clone <repo url>
-
Navigate to the repo's directory using
cd producthunt
-
Run
npm install
to install the server dependencies. -
Navigate to the server directory
cd client
and runnpm install
to install client dependencies. -
Go to the Product Hunt website, create an account and/or login.
-
Navigate to API Dashboard and click on Add an Application.
-
Enter an App Name and redirect URI (
localhost:3000/
will be sufficient in this case) -
Get your access token (public scope) by entering this command into the terminal.
curl --header "Content-Type: application/json" \ --request POST \ --data '{"client_id":"YOUR_API_KEY_HERE","client_secret":"YOUR_API_SECRET_HERE", "grant_type": "client_credentials"}' \ https://api.producthunt.com/v2/oauth/token
-
Alternatively you can generate a developer's token on your application's page.
-
Save your access token in a
.env
file in the project root asACCESS_TOKEN
. -
While in the root directory, run the start command to start the client and server:
npm run devstart