Skip to content

Dash exchange rates service using Serverless framework

License

Notifications You must be signed in to change notification settings

strophy/sls-dash-rate-service

 
 

Repository files navigation

Serverless Dash Exchange Rate Service

Dash exchange rates service using Serverless framework

Table of Contents

Install

sls deploy

Prerequisites

Requires a running Redis instance. Needs to be accessible via REDIS_URL environment variable.

Usage

Test it locally using a local Redis instance:

docker run -p 127.0.0.1:6379:6379 -d redis:alpine

sls invoke local --function fetch --env REDIS_URL=host.docker.internal:6379
sls invoke local --function serve --env REDIS_URL=host.docker.internal:6379

Configuration

Deployment-specific config items should be placed in a config.STAGE.yaml file, where STAGE is the deployment stage used (defaults to dev). This includes VPC security groups and subnet IDs, custom domain for the API Gateway and the URL for the Redis instance.

Feel free to copy the config.example.yaml file and modify the values therein.

Contributing

Feel free to dive in! Open an issue or submit PRs.

License

ISC

About

Dash exchange rates service using Serverless framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 94.3%
  • Makefile 3.2%
  • Shell 2.5%