simple_server_crystal

Version, currently master branch1 version
  • master branchlatestJul 24, 2020

github.com/balena-io-experimental/balena-crystal-lang-server

Run a simple Crystal http server with balena

1 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  simple_server_crystal:
    github: balena-io-experimental/balena-crystal-lang-server
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.35.1
License
MIT
Author
Lucian Buzzo

Dependencies

Runtime Dependencies

  • kemal*github: kemalcr/kemal, commit: a8c0f09b858162bd13c96663febef5527b322a32

README

A Simple Server using Crystal

This is a simple skeleton server written in Crystal that works on Intel NUC devices running balena.

This project serves up "Hello World!" on port :80 of your balena device.

To get this project up and running, you will need to signup for a balena account here and set up an application and device. You'll find full details in our Getting Started tutorial.

Once you have downloaded this project, you can balena push it using the balenaCLI. This command will package up and push the code to the balena builders, where it will be compiled and built and deployed to every device in the application fleet. When it completes, you'll have a web server running on your device and see some logs on your balenaCloud dashboard.

To give your device a public URL, access the device page on the balenaCloud dashboard, and choose the Public Device URL toggle. Alternatively, you can point your browser to your device's IP address.