Setup Node Server

The Steam Api doesn’t allow for cross-origin so first we will have to create our own server using Node. A useful guide for this would be the week one module which covers how to install and setup Node.


Here is a quick run down on the steps for Windows.


  1. Download and Install node.
    Also Make sure you install NPM.
  2. Create a directory for your project and navigate there using the command prompt.
    ‘cd’ instruction opens folders in the Command Prompt, and ‘dir’ displays all the files.
  3. Test the node install by running the command and displaying the node version:
    node -v
  4. Test the NPM install by running the command and displaying the NPM version:
    npm -v
  1. Create a file called ‘server.js’ and enter the following lines of code:
    console.log('Node is installed!');
  2. Run the command in the command prompt:
    node server.js
  3. If Everything Worked Correctly the console should say:
    Node is installed!

Install the Packages We Will Need.


  1. Install Express
    $ npm install express --save
    (--save : ensures that it is saved in the dependencies list.)
    You will be using the express framework to work with the Steam API!
  1. Install Request
    $ npm install request--save
    (--save : ensures that it is saved in the dependencies list.)
    You will need to use request to work with the Steam API!
  1. Install Handlebars
    $ npm install handlebars --save

64x64

HOME

The Steam Api doesn’t allow for cross-origin so first we will have to create our own server using Node!

Setup Node Server

The Steam Api doesn’t allow for cross-origin so first we will have to create our own server using Node!

API Setup

Set up the Steam API!

GetPlayerAchievements

Use The API for the first time.

JSON and HandleBars

Learn how to Use JSON and Handlebars together.

Examples

A few Example Calls to get you familiar with the API.