Giter Site home page Giter Site logo

tuoanhnt95 / health_way Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.97 MB

Manage employee's annual health check results by turning fax and email attachments to pdf, send reminder to Slack, track status with live data

Ruby 64.23% JavaScript 3.11% SCSS 7.93% HTML 24.61% Shell 0.10% Procfile 0.02%
rails ruby

health_way's Introduction

Rails app generated with lewagon/rails-templates, created by the Le Wagon coding bootcamp team.

The app allows user to make a health check setup for all employees, mark and automatically notify HR of their own health check reservation, be notified and reserved their health check result. The app can receive and save results from clinic by file attachment and fax.

-- Fax -- To test fax receiving function, use ngrok: Find the local portal that hosts the website. Example: "localhost:3000" Open a new terminal, type: "ngrok http LOCAL_HOST_PORTAL_NUMBER". Example: "ngrok http 3000" Click on the "Visit this site" button of the server site Get the ngrok webhook. Example: https://348d-124-39-32-242.jp.ngrok.io/

Change the Inbound Parse Webhook on Sendgrid and call the method "submit_result" Access https://app.sendgrid.com/settings/parse Delete the existing webhook Add new webhook Development: webhook configured to ngrok. Example: domain: healthway.live url: https://348d-124-39-32-242.jp.ngrok.io/submit_result Production: webhook configured to healthway.live Example: domain: healthway.live url: https://healthway.live/submit_result

-- Receive result -- Sendgrid has been incorporated into the app, hardcoded to one user for demontration purposes. To change the user receiving the result attachment: Go to health_checks_controller.rb In the method submit_result, change the first_name to the desired user. Example: health_check = User.find_by(first_name: "oanh").health_checks.last

-- Manage databse -- Use Heroku Postgres CLI

$heroku pg:info

CLI commands: https://devcenter.heroku.com/articles/managing-heroku-postgres-using-cli

health_way's People

Contributors

tuoanhnt95 avatar mengrui-song avatar tony-leng avatar yayasdh avatar

Watchers

 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.