HNG task-3 : A dockerized microservice for sending sms notification and checking sms balance
- Odutoye Elijah Kolade [email protected]
- Jimoh Rildwan Adekunle [email protected]
Clone the repo and install the dependencies.
git clone https://github.com/Elikdev/Team_Titians_task3.git
cd Team_Titians_task3
npm install
To run locally:
Step 1: Set your .env variables
ACCOUNT_SID=twillioaccountsid
AUTH_TOKEN=twilioaccountauthtoken
TWILIO_NUMBER=twilionumber
MONGOURI=databaseurl
Step 2: Run the script
npm run devStart
To run this app as a docker container, you must have docker installed on your computer:
Step 1: Clone the repo
git clone https://github.com/Elikdev/Team_Titians_task3.git
Step 2: Set your enviroment variables
ACCOUNT_SID=twillioaccountsid
AUTH_TOKEN=twilioaccountauthtoken
TWILIO_NUMBER=twilionumber
MONGOURI=mongodb://mongo:27017/smsapp
Step 3: Run the Docker container locally:
docker-compose up