Skip to content

Simple project to OAuth to a provider via Finch and pull a few types of data

License

Notifications You must be signed in to change notification settings

markstephenburnham/OAuth-Data-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Project Setup for Macintosh

  1. Download and install Node.js version 22.1.0: Node.js Download

  2. Open a terminal window and clone the project:

    git clone https://github.com/markstephenburnham/OAuth-Data-Example

(If prompted to install developer tools to use git, please do so.)

  1. Change directory into the dse directory:

    cd OAuth-Data-Example
    
  2. Run the following command to install the required packages:

    npm install
    
  3. Set the following environment variables:

    export C_CLIENT_ID=<your finch clientid>
    export C_REDIRECT_URL=http://localhost:3000/auth
    export C_CLIENT_SECRET=<your client secret>
    
  4. Start the application:

    npm start
    
  5. Point a browser to http://localhost:3000