下载ruby   https://rubyinstaller.org/downloads/ 

            ruby第一次实践    ”hello world“ 

创建 ruby-version 写自己的版本

            ruby第一次实践    ”hello world“ 

写Gemfile  

               source: http://ruby.taobao.org/

               source: https://rubygems.org/

gem install  grape

成功之后   多了一个 frontier  

新建文件

                 ruby第一次实践    ”hello world“

                ruby第一次实践    ”hello world“

                ruby第一次实践    ”hello world“

 

最后的文件如下: 

  ruby第一次实践    ”hello world“

 访问  http://localhost:9292/  就可以得到 hello world

 好神奇!!!!

   

 

 

后续: 安装中如果提示要装dev-kit  先下载再解压 可以参考http://www.bubuko.com/infodetail-822590.html

ruby第一次实践    ”hello world“

 

相关文章: