https://github.com/denq/samurai.js
Js framework based on hapi.js
https://github.com/denq/samurai.js
Last synced: about 1 year ago
JSON representation
Js framework based on hapi.js
- Host: GitHub
- URL: https://github.com/denq/samurai.js
- Owner: DenQ
- License: mit
- Created: 2015-12-20T16:48:28.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-09T12:30:36.000Z (over 10 years ago)
- Last Synced: 2023-08-15T13:48:04.864Z (almost 3 years ago)
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# samurai.js
This Js server side framework based on hapi.js.
# status
Project just by begined development.
# Run deveopment
gulp watch
or
node app.js --harmony
# Showly on browser
* http://localhost:5200/user/1 -get request from one row
* http://localhost:5200/users -get request from many rows
# CURL
curl -X GET http://localhost:5200/user/1;echo
curl -X POST http://localhost:5200/user/1;echo
curl -X PUT http://localhost:5200/user/1;echo
curl -X DELETE http://localhost:5200/user/1;echo
# Render templates
curl -X GET http://localhost:5200/users;echo
Outpad
Title
Hello World!
# Testing
lab tests/unit.js