Highly opinionated server framework for Denojs
Apis live in the /api
directory.
file name is the name of the api.
functions in the API are the apis that are exposed to the client.
eg: POST: user/login
=
./api/user/
const login = (data: JSON) => {
return {name:'joe'}
}
data:JSON
: POST payload, currently only supports JSON
eg: GET: user
=
./api/user/
const index = () => {
return {name:'user index'}
}
git clone https://github.com/codebenderhq/fictional-palm-tree.git ./server
cd ./server
deno run --allow-net server.js
- GET Support
- POST Support
- Support for query parameters
- Support for authorization header
- Support for file uploads
- Support for sockets
And more to be rolled out!