Build and run serverless JS applications.
Installation & Usage
CLI
nJinn can be run without any installation:
npx njinn -p 3033
Server will be available at http://localhost:3033
API
You can also use nJinn inside your project:
npm install njinn
Usage:
const nJinn = ; async { await nJinn;};
Server API
Save script
POST
/saveScript
Body:
Execute script
POST
/executeScript
Body:
Install packages
POST
/installPackages
Body:
Queue jobs
Runs functions in the background and returns result to the specified webhook.
POST
/queueJobs
Body:
Testing
Tests can be run by using docker-compose -f docker-compose.test.yml up --abort-on-container-exit --exit-code-from test
command.