CrystalThe Highs & Lows of Crystal - an Introduction to Crystal LangCrystal Language claims to be as fast as C and as easy to learn as Ruby. Here, I put it to the test and give my 2 cents! Crystal is a statically-typed, compiled, systems programming language with the aims of being as fast as c/c++, while having a syntax as readable as Ruby. This article is an introduction to the Crystal Language,
概要 Crystalをherokuで使えるようにする手順のログです 久々にCrystal触るからcrenvから実施しています Kemalというのが流行ってるっぽいので使っています 結論 hkdnet/kemal_sample と hkdnet/heroku-buildpack-crystal at build_commands_with_space をつかって https://kemal-sample.herokuapp.com が動いています。 やらないこと herokuのセットアップ手順の解説 Crystal, Kemalの文法解説 手順 crystalのインストール # anyenv経由で実施します anyenv install crenv # ちなみにcrystal以外にshardsというコマンドも入ります(使い方は後述) crenv install 0.11.0 crenv gl
Kemal Fast, Effective, Simple. Lightning fast, super simple web framework written in Crystal. Start Now require "kemal" # Matches GET "http://host:port/" get "/" do "Hello World!" end # Creates a WebSocket handler. # Matches "ws://host:port/socket" ws "/socket" do |socket| socket.send "Hello from Kemal!" end Kemal.run Support all REST verbs Websocket support Request/Response context, easy paramete
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く