Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the starter kit for Server-Side Rendering with Express and Smartcar.

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

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 SMARTCAR_CLIENT_ID=<your-client-id>
$ export SMARTCAR_CLIENT_SECRET=<your-client-secret>
$ export SMARTCAR_REDIRECT_URI=http://localhost:8000/exchange

Make sure you have cloned this repo -

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

To install the required dependencies and run this Express app -

$ npm install
$ npm start

note The server will automatically restart and load any code changes you do.

Once your server is up and running, you can authenticate your vehicle at http://localhost:8000/login in your browser. In our current set up, we are using Smartcar's simulated mode, so you can log in with simulated credentials found in your Smartcar Dashboard or with any username and password.

About

Getting started with Smartcar and Express

Topics

Resources

Stars

2 stars

Watchers

17 watching

Forks

Releases

Packages

Used by

Contributors

Languages