Autocode has complete support for local development. Our Command Line Tool (CLI) is available via GitHub: github.com/stdlib/lib. With our command line tooling you can;
$ lib init
$ lib create
$ lib .endpointname --param
$ lib download
$ lib up dev
$ lib release
$ lib logs
All Autocode apps and APIs operate via the heavily-tested and completely open source FunctionScript specification which turns JavaScript function into typed HTTP APIs and automatically generates machine-readable API specifications based on comments preceding the JavaScript function. For example;
/** * My addition function * @param {number} a First number * @param {number} b Second number * @returns {number} c */ module.exports = async (a, b) => { return a + b; }
Would generate a simple API that requires parameters a and b to be set, will automatically type check inputs, and will return the specified output (or return a server error if there's an output mismatch). You can explore the full FunctionScript specification on GitHub.
a
b