6
Osprey
source link: https://github.com/swlkr/osprey
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Osprey
Osprey is a sinatra inspired framework for writing web applications in janet quickly
(use osprey) (GET "/" "osprey") (server 9001)
Make sure janet and osprey are installed (macOS)
brew install janet jpm install https://github.com/swlkr/osprey
Add the example code above to a .janet
file:
echo '(use osprey) (GET "/" "osprey") (server 9001)' > myapp.janet janet myapp.janet
Make sure it's working with curl
curl localhost:9001 # => osprey
That's it for now, happy hacking!
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK