https://github.com/guenchi/ballista
a Express style webframework for Igropyr (Chez Scheme http-server)
https://github.com/guenchi/ballista
chez chez-scheme igropyr library scheme web webframework
Last synced: 6 months ago
JSON representation
a Express style webframework for Igropyr (Chez Scheme http-server)
- Host: GitHub
- URL: https://github.com/guenchi/ballista
- Owner: guenchi
- License: mit
- Created: 2018-04-20T20:56:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-20T23:18:52.000Z (about 3 years ago)
- Last Synced: 2023-10-20T20:07:31.352Z (over 2 years ago)
- Topics: chez, chez-scheme, igropyr, library, scheme, web, webframework
- Language: Scheme
- Homepage:
- Size: 129 KB
- Stars: 20
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ballista
***Ballista*** is a ***Express style*** webframwork for ***Igropyr***
### Igropyr : Ballista = Node : Express
> ***Ballista*** is repackaged on ***Catapult*** basis to make the application easier. But no longer purely functional.
## [Manual](https://guenchi.github.io/Ballista)
***easily to write the router***
```
(get "/" index)
(get "/index" index)
(get "/blog/*/en" blogEN)
(get "/articles/*" article)
(get "/*" handle404)
(post "/users" users)
(post "/notes" notes)
```
***easily to control the process***
application-level middleware:
```
(get-use middleware1)
(get-use middleware2)
(get-use middleware3)
...
```
router-level middleware:
```
(get "/index" middleware ... index)
```
***easily to set up the server***
```
(staticpath "/usr/local/www/")
(listen-on "127.0.0.1")
(listen-on 8080)
(listen-on "127.0.0.1" 8080)
```
***[Igropyr](https://guenchi.github.io/Igropyr)*** is a async http-server for Chez Scheme
Ballista's sister framwork and its dependence: ***[Catapult](https://guenchi.github.io/Catapult)*** (purely functional)