EmergencyRoom-ChatBot is a chatbot service delivered on line-messenger platform.
Add the ChatBot's line channel
- send any message to activate the EmergencyRoom-ChatBot.
- send your current location
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.
git clone [email protected]:curieyoon/emergencyRoom-ChatBot.git
cd emergencyRoom-ChatBot
npm install --save
npm install -g yarn
yarn add dotenv
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.