Installation

In order to install the nijor cli, you need to have NodeJS or Bun installed on your computer.

Using NPM (nodejs) :


For Linux/Mac

sudo npm install @nijor/nijor -g

For Windows

npm install @nijor/nijor -g

Using Bun :


For Linux/Mac

sudo bun add @nijor/nijor -g

For Windows

bun add @nijor/nijor -g

Project Structure

A typical Nijor project has a src/, assets/, index.html,nijor.config.json
The nijor.config.json file stores the configuration for the nijor compiler.

The src directory :

The src/ directory is our actual working directory. It contains the following files/directories :
(1) components/ directory stores all our components
(2) pages/ directory stores all our pages for routing
(3) App.js files is the main entry file of our project
(4) App.nijor is the first nijor component that gets rendered in our Nijor project

The assets directory :

The assets/ directory stores the assets of your project ; the assets/modules/ directory stores all the compiled nijor pages and components.