HOME DOCS PWA ABOUT
  1. Replicator
    1. Write
    2. Read
  2. Concepts
    1. Storing Information
    2. Writing Specifications
    3. Retrieving Information
  3. Steps
    1. Setup Steps
      1. Install Prerequisites
      2. Create a Node Application
      3. Install Jinaga
      4. Install TypeScript (optional)
    2. Testing Steps
      1. Write Some Tests (JavaScript)
      2. Write Some Tests (TypeScript)
      3. Create Related Facts
      4. Query Facts
      5. Export the Model (JavaScript)
      6. Export the Model (TypeScript)
      7. Authorize Facts
    3. Server-Side Steps
      1. Serve a Web Page
      2. Configure Jinaga Server
    4. Client-Side Steps
      1. Load with RequireJS
      2. Load with Webpack (JavaScript)
      3. Load with Webpack (TypeScript)
      4. Configure Jinaga Browser
    5. Database Steps
      1. Connect to PostgreSQL
    6. React Steps
      1. Compile JSX (JavaScript)
      2. Compile TSX (TypeScript)
      3. Install React
    7. Starter Kits
    8. Commits
  4. Conventions
    1. JavaScript
    2. TypeScript
  5. Reference
    1. Jinaga
      1. fact
      2. query
      3. watch
      4. for
      5. match
      6. exists
      7. notExists
      8. not
      9. hash
      10. login
      11. local
      12. service
      13. onError
      14. onLoading
      15. onProgress
      16. graphviz
      17. inspect
    2. Preposition
      1. then
    3. Syntax diagram
  6. Jinaga React
    1. Composition
    2. Field Specification Functions
      1. field
      2. projection
      3. collection
      4. property
      5. mutable
      6. array
    3. Building Applications
      1. Modal Dialogs
      2. Prompts
  1. Steps
  2. Setup Steps

Create a Node Application

Jinaga JS is based on Node. To create a new Node application, start with an empty folder.

mkdir myapplication
cd myapplication

Then initialize a new Node app in that folder.

npm init

Answer the questions. The defaults are good to start with. When you are done, you will have a new file called package.json.

Continue With

Install Jinaga