QuickCall
What is QuickCall?
QuickCall empowers you to effortlessly define server-side functions and seamlessly invoke them on the client end, all without the need for explicit API definitions. This streamlined approach allows for efficient and direct communication between server and client, reducing the development overhead associated with traditional API setup.
What you can do with this?
Elevate your coding experience with QuickCall, a compact powerhouse for seamless backend integration. Effortlessly call functions and define callbacks, simplifying your workflow without sacrificing precision. Dive into a world of efficiency and clarity—QuickCall redefines simplicity in coding.
Motivation:
Goal:
Client Side Example
import QcClient from "quickcall"
const qc = QcClient("http://localhost:3002")
qc.sum(20, 30)
.then(output => console.log("output", output))
Server Side Example - Nodejs
const express = require('express')
const cors = require("cors")
const app = express()
const port = 3002
var bodyParser = require('body-parser')
app.use(cors("*"))
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
const QcWrapper = require("quickcall").Server(app)
QcWrapper(sum)
function sum(a, b){
return a + b
}
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
Upcoming Feature Highlights