/fictional-palm-tree

A powerhouse server APi simple to use

Primary LanguageJavaScript

codebenderhq/server

Description

Highly opinionated server framework for Denojs

File Structure

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.

Usage

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'}
    }

How To Run

Requirements

Denojs

Setup

git clone https://github.com/codebenderhq/fictional-palm-tree.git ./server

how to run

cd ./server
deno run --allow-net server.js

Roadmap

  • 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!