Giter VIP home page Giter VIP logo

1upwebapp's Introduction

1up Health Demo Web Application

Example web application built using 1upHealth FHIR, User & Connect APIs

Before you start

Create an application via the 1uphealth devconsole https://1up.health/devconsole for testing purposes. Use http://localhost:3000/callback for your app's callback url. Make sure you save your client secret as it'll only be shown once.

Quickstart

  1. Checkout source code from the repo
cd ~/
git clone https://github.com/1uphealth/1upwebapp.git
  1. Add your API keys to app server session, ex. vim ~/.bashrc or ~/.bash_profile
export ONEUP_DEMOWEBAPPLOCAL_CLIENTSECRET="clientsecretclientsecret"
export ONEUP_DEMOWEBAPPLOCAL_CLIENTID="clientidclientid"

save this

source ~/.bashrc
source ~/.bash_profile
  1. Create config.json configuration file with the same client_id
{
  "baseURL": "http://localhost:3000",
  "clientId": "xxxxxxx",
  "__clientId": "the client id must be hardcoded here because this will be client side",
  "email": {
    "sender": "[email protected]"
  }
}
  1. Install & run the app
npm install
npm run dev
  1. Run the email server (python 2.7)
sudo python -m smtpd -n -c DebuggingServer localhost:25

Test Health Systems

You can test the demo web app with one of these FHIR health system accounts.

Optional Setup: Setup email using actual email (relay) server

Either run a test local server for development

sudo python -m smtpd -n -c DebuggingServer localhost:25

Or setup email js for production in auth.js

var email 	= require("emailjs");
var server 	= email.server.connect({
   user:    "username",
   password:"password",
   host:    "smtp.your-email.com",
   ssl:     true
});

1upwebapp's People

Contributors

gajen0981 avatar rickysahu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.