zoukankan      html  css  js  c++  java
  • micro 试用

    micro 是一个完整的cloud native 开发平台,以下是一个简单的试用

    安装

    go get github.com/micro/micro/v3

    准备环境

    主要是server 启动以及环境配置&&登陆

    micro server
    micro env set local
    micro login

    创建服务

    # generate a service (follow instructions in output)
    micro new helloworld
    # run the service
    micro run helloworld
    # check the status
    micro status
    # list running services
    micro services
    # call the service
    micro helloworld --name=Alice
    # curl via the api
    curl -d '{"name": "Alice"}' http://localhost:8080/helloworld

    效果



    说明

    micro 提供的能力还是比较强大的,还是值得学习的

    参考资料

    https://micro.mu/getting-started
    https://github.com/micro/micro

  • 相关阅读:
    2
    vue学习03
    vue学习02
    2
    vue学习01
    pycharm中安装vue
    git
    form
    ajax
    中间件
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/14198203.html
Copyright © 2011-2022 走看看