Skip to content

Latest commit

 

History

History
101 lines (69 loc) · 4.77 KB

README.md

File metadata and controls

101 lines (69 loc) · 4.77 KB



2_place

EmergencyRoom-ChatBot

Overview

Searching for available emergency room in a straightforward manner is a multi-step process which includes 1) searching for nearby hospitals that may have any ER 2) confirming the ER availability via phone calls or websites, etc. until you find one that accommodates to your need. (if there's any)
EmergencyRoom Chatbot provides you with a much more efficient and faster solution; drop your address and the Chatbot will have rest of the work done for you on the fly.

1_activate

For End Users

Getting Started

curie_QR

Find Emergency Room near you

  1. send any message to activate the EmergencyRoom-ChatBot.

1_activate

  1. enter your current address (e.g 서천동, 덕영대로) or name of the place near you (e.g 경희대학교)

2_place

  1. confirm your location by tapping '네'

  1. ChatBot will then check ER availability of nearby hospitals. If there's any, it will send the list of the hospitals in ascending order of estimated time to get there from your current location.

3 4
Note that the hospitals are sorted by estimated time instead of absolute distance from your location, which adds even more reliability for your urgency.

To reactivate the ChatBot, enter any chat.

For Developers

Installation

Requirements

This project was built on Amazon Linux 2 on ec2 instance of aws. Following instructions will be compatible on Amazon Linux 2 and other linux distributions.

Install From Source

git clone [email protected]:curieyoon/emergencyRoom-ChatBot.git
cd emergencyRoom-ChatBot
npm install --save
npm install -g yarn
yarn add dotenv

Add your private keys

Under the root repository emergencyRoom-ChatBot, create your .env file containing private keys for the APIs this project depends on. Your .env file should look like this:

CHANNEL_ACCESS_TOKEN="Your_Line_Messenger_Access_Token"
KAKAO_KEY="KakaoAK Your_Kakao_API_Private_Key"
MY_DOMAIN="Your_server_domain_which_this_service_runs_on"
EMERGENCY_KEY="Your_Hospital_API_Key"
DIR_ID="Your_Naver_Map_API_ID"
DIR_KEY="Your_Naver_Map_API_KEY"

To import .env file properly in each module, make sure the line require("dotenv").config( {path: "/path/to/.env"} ); contains the absolute path of your .env file on your server.

Each key in the .env indicates:

License

Distributed under the MIT License. See License.txt for more information.

Contact