This repo is a backend relay for Agro Alert App
git clone https://github.com/8mn/agro-alerts-server.git
cd agro-alerts-server
npm install
- Head over to Twilio console and get the Twilio account sid, auth token
- Head over to Openweather map signup and get the key
- rename
.env.exampleto.envand insert the credentials as shown below
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
OPENWEATHER_API_KEY=
npm run dev
npm start
Runs on localhost:3000 by default but can be configured using the PORT environment variable.
npm test
# Watch repo
npm run test:watch
npm run lint
# fix issues
npm run lint:fix