Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.08 KB

README.md

File metadata and controls

21 lines (15 loc) · 1.08 KB

Create React App Pinterest API diagnose tool

Extends Create React App boilerplate to include a Pinterest login button ()when not authenticated) or display the currently logged username and avatar.

Requirements

  • NodeJS version >= 6

Installation and Run

  1. Create a Pinterest app
  2. Make sure there is an environment variable called REACT_APP_PINTEREST_APP_ID with the generated Pinterest app ID. You can use any supported mechanism

In the project directory, run:

  1. yarn install
  2. HTTPS=true yarn start will run development server locally on port 3000 using HTTPS (Pinterest API requires it) and launch the default browser.

Deploy to Firebase

  1. npm install -g firebase-tools will install Firebase command line tools (only once, in your local machine)
  2. firebase login
  3. yarn build
  4. firebase deploy