V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
爱意满满的作品展示区。
way2explore2
V2EX  ›  分享创造

汇率暴跌,所以 fork 了一个 Python 汇率 API

  •  
  •   way2explore2 · 2020-03-21 06:20:21 +08:00 · 2264 次点击
    这是一个创建于 1504 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/tim-hub/sanic-currency-exchange-rates-api

    - refactor 一下
    - 更新了依赖
    - 解决了一些潜在漏洞
    第 1 条附言  ·  2020-03-23 16:19:26 +08:00

    docker 一键

    docker build -t rate-api . && docker run --name rate-api -t -i -e DATABASE_URL=postgresql://dbuser:pwd@dburl:5432/dbname rate-api

    2 条回复    2020-03-23 16:11:36 +08:00
    lixonxp
        1
    lixonxp  
       2020-03-21 12:26:41 +08:00
    怎么部署呢
    way2explore2
        2
    way2explore2  
    OP
       2020-03-23 16:11:36 +08:00
    @lixonxp 抱歉没有写这部分文档,

    最简单是 docker

    `docker build -t rate-api . && docker run --name rate-api -t -i -e DATABASE_URL=postgresql://dbuser:pwd@dburl:5432/dbname rate-api `
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2134 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 04:41 · PVG 12:41 · LAX 21:41 · JFK 00:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.