KobraKid / getting-started-node-sdk

Getting Started with Node SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is the starter kit for Node SDK.

This kit contains a simple web application that displays car information using Smartcar's Node SDK.

Instructions

Before we get started, create an application on Smartcar's Developer Dashboard to get your API keys.

Note: On the dashboard, you will want to set your redirect_uri as http://localhost:8000/exchange.

Then, we can set these as environment variables -

$ export CLIENT_ID=<your-client-id>
$ export CLIENT_SECRET=<your-client-secret>
$ export REDIRECT_URI=http://localhost:8000/exchange

Make sure you have cloned this repo -

$ git clone https://github.com/smartcar/getting-started-node-sdk.git
$ cd getting-started-node-sdk/app

To install the required dependencies and run this Node app -

$ npm install
$ node index.js

Once your server is up and running, you can authenticate your vehicle. In our current set up, we are using Smartcar's test mode, so you can log in with any username and password. To authenticate, navigate to http://localhost:8000/login. Once you have authenticated, go to http://localhost:8000/vehicle to see your vehicle information.

Next Steps

Read our API Docs to learn what else you can do with Smartcar's API.

Learn more about the Node SDK and how it can be used.

About

Getting Started with Node SDK

License:MIT License


Languages

Language:JavaScript 100.0%