/uzaki

Primary LanguageGo

uzaki

A tool to check the stock of a product.

Install

Node.js

brew install nodenv
nodenv install -l
nodenv install 15.1.0
nodenv global 15.1.0
nodenv versions
node -v

Serverless

npm install -g serverless
serverless -v

Docker

Required to perform serverless invoke local.

Setup

This application uses Slack for notifications, so you need a webhook URL.

make setup

Rewrite webhook_url in slack.yml.

Run

Setup slack.yml

Local environment

make local

Make sure the docker is running.

AWS Lambda

Configure aws credentials

brew install awscli
aws configure 

Deploy to Lambda

make deploy

It will be run periodically at the interval specified in the rate in serverless.yml.
Note that the first one will not run immediately and will run after a specified rate.