simondbm / forge_hackathon_node-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Forge hackathon viewer assets code

Setup

Prerequisites

  1. Forge Account:
  2. Visual Code: Visual Code (Windows or MacOS).
  3. JavaScript ES6 syntax for server-side
  4. JavaScript basic knowledge with jQuery

Running locally

Install NodeJS, version 8 or newer.

Clone this project or download it (this nodejs branch only). It's recommended to install GitHub desktop.

To run it, install the required packages, set the enviroment variables or hard code in config file with your client ID & secret and finally start it. Via command line, navigate to the folder where this repository was cloned and use the following:

Mac OSX/Linux (Terminal)

npm install
export FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM DEVELOPER PORTAL>>
export FORGE_CLIENT_SECRET=<<YOUR CLIENT SECRET>>
export FORGE_CALLBACK_URL=<<YOUR CALLBACK URL>>
npm start

Windows (use Node.js command line from Start menu)

npm install
set FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM DEVELOPER PORTAL>>
set FORGE_CLIENT_SECRET=<<YOUR CLIENT SECRET>>
set FORGE_CALLBACK_URL=<<YOUR CALLBACK URL>>
npm start

Open the browser: http://localhost:3000.

About


Languages

Language:JavaScript 91.5%Language:HTML 6.5%Language:CSS 2.0%