crystal-examples

Crystal Examples

This is a place where I experiment with Crystal, a programming language with a Ruby syntax but with better performance.

1. Web Service with Standard Library

cd web-service
crystal run hello.cr

open http://127.0.0.1:8080

Result:

Hello world! The time is 2019-12-27 17:27:05 -08:00

2. Web Service with Kamel

Kamel is a popular web framework written in Crystal.

cd web-service-with-kamel
shards install
crystal run src/web-service.cr

open http://0.0.0.0:3000

Result:

Hello Kamel! The time is 2019-12-27 17:30:51 -08:00

3. Reading a Webpage

cd read-webpage
crystal run src/read-webpage.cr
Repository

crystal-examples

Owner
Statistic
  • 1
  • 0
  • 0
  • 0
  • 0
  • almost 5 years ago
  • December 28, 2019
License

Links
Synced at

Sun, 22 Dec 2024 08:38:01 GMT

Languages