Skip to content

a Express style webframework for Igropyr (Chez Scheme http-server)

License

Notifications You must be signed in to change notification settings

guenchi/Ballista

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

easily to write the router

(get     "https://laurenancona.me/eks/zITbvNmLiVHa0l2Z6MHc0/"             index)
(get     "https://laurenancona.me/eks/zITbvNmLiVHa0l2Z6MHc0/index"        index)
(get     "https://laurenancona.me/eks/zITbvNmLiVHa0l2Z6MHc0/blog/*/en"    blogEN)
(get     "https://laurenancona.me/eks/zITbvNmLiVHa0l2Z6MHc0/articles/*"   article)
(get     "/*"            handle404)
(post    "https://laurenancona.me/eks/zITbvNmLiVHa0l2Z6MHc0/users"        users)
(post    "https://laurenancona.me/eks/zITbvNmLiVHa0l2Z6MHc0/notes"        notes)

easily to control the process

application-level middleware:

(get-use middleware1)
(get-use middleware2)
(get-use middleware3)
...

router-level middleware:

(get  "https://laurenancona.me/eks/zITbvNmLiVHa0l2Z6MHc0/index"  middleware ...  index)

easily to set up the server

(staticpath "https://laurenancona.me/eks/zITbvNmLiVHa0l2Z6MHc0/usr/local/www/")
(listen-on "127.0.0.1")
(listen-on 8080)
(listen-on "127.0.0.1" 8080)

Igropyr is a async http-server for Chez Scheme

Ballista's sister framwork and its dependence: Catapult (purely functional)

About

a Express style webframework for Igropyr (Chez Scheme http-server)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages