Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sogaiu/spork-http-sample
Simple Janet spork/http samples
https://github.com/sogaiu/spork-http-sample
demo http janet sample spork
Last synced: about 2 months ago
JSON representation
Simple Janet spork/http samples
- Host: GitHub
- URL: https://github.com/sogaiu/spork-http-sample
- Owner: sogaiu
- Created: 2024-01-04T02:34:47.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-07-12T13:39:09.000Z (7 months ago)
- Last Synced: 2024-07-12T15:32:36.160Z (7 months ago)
- Topics: demo, http, janet, sample, spork
- Language: Janet
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
#############################################################
# basic sample
# setup
git clone https://github.com/sogaiu/spork-http-sample
cd spork-http-sample
jpm -l deps# start web server
jpm -l janet basic.janet# from browser access http://127.0.0.1:8000/
#############################################################
# image-via-query sample
# setup
git clone https://github.com/sogaiu/spork-http-sample
cd spork-http-sample
jpm -l deps# start web server
jpm -l janet image-via-query.janet# from browser access http://127.0.0.1:8000/?name=janet.png
#############################################################
# form sample
# setup
git clone https://github.com/sogaiu/spork-http-sample
cd spork-http-sample
jpm -l deps# start web server
jpm -l janet form.janet# from browser access http://127.0.0.1:8000/
#############################################################
# router sample
# setup
git clone https://github.com/sogaiu/spork-http-sample
cd spork-http-sample
jpm -l deps# start web server
jpm -l janet router.janet# from browser access http://127.0.0.1:8000/