Home

Awesome

Initialize

Contribute

Feel free to submit any issue.

Steps to make contributions


gt-node-server

A node server

Feature

Design Mindmap

Design Mindmap

Develop

Render React

SSR: http://127.0.0.1:8080/demo/render-react?ssr=1 CSR: http://127.0.0.1:8080/demo/render-react

API

curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'id=3' "http://127.0.0.1:8080/demo/1?id=2" => > {"code":0,"data":{"body":{"id":"3"},"query":{"id":"2"},"params":{"id":"1"},"args":{"id":"3"}}}

Deploy

Guides

Actions

exports.argTypes = {
  name: ArgTypes.string.isRequired,
  age: ArgTypes.number
};
exports.defaultArgs = {
  age: 18
};
exports.get = function get({ args, httpStatusCodes }) {
  return {
    status: httpStatusCodes.OK,
    body: args,
  }
};
exports.post = function post({ args, httpStatusCodes }) {
  return {
    status: httpStatusCodes.OK,
    body: args,
  }
}