Skip to content

Latest commit

 

History

History
95 lines (74 loc) · 1.4 KB

README.md

File metadata and controls

95 lines (74 loc) · 1.4 KB

Goodgym

js-standard-style

April 2017 - Prototype app consuming Yoti

An app for Goodgym which enables their trainers to create and share challenges with their runners. The runners are signed in on the runs with use of Yoti.

Setup

  1. Clone the repository by copy-pasting the following command into your terminal:
git clone https://github.com/external-apps/Goodgym.git && cd Goodgym
  1. Install the required dependencies:
npm install
  1. Build CSS:
npm run watchCss
  1. View website

    Run the server:

    npm run devStart
    

    Navigate to:

    http://localhost:3000
    
  2. Run tests

    npm test
    

Tech Stack

Languages:

Javascript
Node
Sass (node-sass)

Framework:

Express

Database:

MongoDB
Database hosted on MLab

Templating:

Handlebars (express-handlebars)

Testing:

Chai
Mocha
Supertest

Linting:

ESLint (js-standard-style)

Dependencies:

body-parser
cookie-parser
env2
express
express-handlebars
express-session
mongoose
nodemailer
passport
passport-local
request
yoti-node-sdk

Environment variables:

NODE_ENV
DB_USER
DB_PASS
DB_DATABASE
APP_ID
SCENARIO_ID
CLIENT_SDK_ID
API_KEY
NM_USER
NM_PASS
SESSION_SECRET
SECURITY_PEM