Skip to content

oktadev/okta-nodejs-postgres-weight-tracker-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Weight Tracker

Demo

This sample application demonstrates the following technologies.

  • hapi - a wonderful Node.js application framework
  • PostgreSQL - a popular relational database
  • Postgres - a new PostgreSQL client for Node.js
  • Vue.js - a popular front-end library
  • Bulma - a great CSS framework based on Flexbox
  • EJS - a great template library for server-side HTML templates

Requirements:

Install and Configuration

  1. Clone or download source files
  2. Run npm install to install dependencies
  3. If you don't already have PostgreSQL, set up using Docker
  4. Create a free Okta developer account and add a web application for this app
  5. Copy .env.sample to .env and change the OKTA_* values to your application
  6. Initialize the PostgreSQL database by running npm run initdb
  7. Run npm run dev to start Node.js

The associated blog post goes into more detail on how to set up PostgreSQL with Docker and how to configure your Okta account.