Install Jinaga

This assumes that you have created a Node Application.

Jinaga is published as an NPM package. To install it just run:

npm i jinaga

It is now in your package.json and downloaded to the node_modules folder.

The package contains two bundles. One is for the server, and the other is for the client. To get the most out of the library, you will need to use them together.

Context File Module Format
Server and Tests node_modules/jinaga/dist/index.js CommonJS
Client node_modules/jinaga/dist/jinaga.js AMD

To use the library in tests or on the server, you can use require from a Node application. To use it on the client, use an AMD module loader like RequireJS, or a bundler like Webpack.

Pick your Initializer

To load, save, or project information, you will need an instance of the Jinaga class. Don't just create one yourself. Use an initializer that sets it up correctly for you.

There are three ways to initialize Jinaga.

Context Initializer Instructions
Tests JinagaTest Write Some Tests
Server JinagaServer Jinaga Server
Client JinagaBrowser Load With Webpack

Continue With

Install TypeScript (optional)