To get started with Jitar we've created examples to explain and demonstrate the concepts of Jitar. We advice to study these examples in the order they're specified below.
Note: All examples are in TypeScript. If you're not familiar with TypeScript, the examples should still be understandable.
In order to run the examples you need to have the following installed:
- Node.js version 20.0.0 or higher
- TypeScript version 4.4.2 or higher
Most examples do not have an UI to keep them simple and focussed. For running these examples the PRC API will be used.
A requests.http
file is provided containing example requests to call the procedures. We use
Visual Studio Code with the
REST Client extension to run these requests.
But you can use any http client like Postman.
The following projects focus on one particular concept at a time. The examples are kept simple to explain the concept.
- Hello Word - Demonstrates how to create a procedure and call it using the RPC API.
- Segmentation - Demonstrates how to split an application into multiple segments.
- Load balancing - Demonstrates how to load balance segments.
- Access protection - Demonstrates how to protect the access to a procedure.
- Multi Version - Demonstrates how to create multiple versions of a procedure.
- Data Transportation - Demonstrates how to transport data between segmented procedures.
- Error handling - Demonstrates how to the error handling works.
- Health checks - Demonstrates how to use health checks.
- Middleware - Demonstrates how to use middleware.
- Cors - Demonstrates how to enable cors.
- Construction - Demonstrates how to use a set up and tear down scripts.