https://github.com/swlkr/osprey
A framework for making web applications quickly
https://github.com/swlkr/osprey
Last synced: 9 months ago
JSON representation
A framework for making web applications quickly
- Host: GitHub
- URL: https://github.com/swlkr/osprey
- Owner: swlkr
- License: mit
- Created: 2020-12-05T06:07:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-07T17:58:06.000Z (almost 5 years ago)
- Last Synced: 2025-03-26T06:11:16.450Z (10 months ago)
- Language: Clojure
- Size: 157 KB
- Stars: 55
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Osprey
Osprey is a [sinatra](http://sinatrarb.com) inspired framework for writing web applications in [janet](https://github.com/janet-lang/janet) quickly
```clojure
(use osprey)
(GET "/" "osprey")
(server 9001)
```
Make sure janet and osprey are installed (macOS)
```sh
brew install janet
jpm install https://github.com/swlkr/osprey
```
Add the example code above to a `.janet` file:
```sh
echo '(use osprey) (GET "/" "osprey") (server 9001)' > myapp.janet
janet myapp.janet
```
Make sure it's working with curl
```sh
curl localhost:9001
# => osprey
```
That's it for now, happy hacking!