Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

sms_serv

短信验证码 微服务。该服务用crystal语言开发。 crystal语言优势就是语法和Ruby一样,运行速度接近C++。 劣势:用的人不多,库相对其他热门语言少。

Installation

安装,开始运行

首先安装crystal-lang curl https://dist.crystal-lang.org/apt/setup.sh | sudo bash

安装Redis。

Usage

安装依赖包,运行 crystal deps

添加.env文件, 里面是短信服务的配置信息

文件内容 access_key=xxxxxxxx access_secret=xxxxxxxx sms_sign_name=短信签名 sms_template=短信模版ID

以上安装完毕 开始运行 crystal run

curl -X GET http://localhost:3000/check\?mobile\=xxxxxxx\&code\=123123

Development

TODO: Write development instructions here

Contributing

  1. Fork it ( https://github.com/[your-github-name]/sms_serv/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • [amjil] amjil - creator, maintainer

Comments ( 0 )

Sign in for post a comment

About

短信验证码 微服务。该服务用crystal语言开发。 spread retract
Crystal
MIT
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more