This sample application shows how you use OAuth2.0 to authenticate with the PlanGrid API. More details about OAuth for PlanGrid can be found on the developer site.
- Clone this repository using
git clone https://github.com/sophatsam/plangrid-oauth2-sample. - Create a
.envfile in the root directory (copy/rename the existing.env-samplefile). - Modify the contents of the
.envfile to include your client ID, client secret, redirect URI, and port number to use for the web server. (If running locally, ensure that you have supplied PlanGrid with ahttp://localhost:PORTaddress as a redirect URI) - Run
npm installto install dependencies and start the application. - Access your application in the browser via
http://localhost:PORT.