Introduction
Getting Started
App Config File
Entity Schemas
NoLang Script
NoLang Endpoints
Microservices
Storage
Documents / Getting Started
contents

Getting Started

To create a NoLang application, we need to have NodeJS installed. Then create a directory anywhere.
mkdir app1
cd app1

Then create the app config file named app.json like bellow for example:
{
	"name": "sample app",
	"schemas": [
		{
			"$id": "entity-schema-id",
			"properties": {
				"FieldName1": {
					"type": "string"
				},
				"FieldName2": {
					"type": "number"
				}
			}
		}
	],
	"endpoints": [
		{
			"type": "http",
			"port": 80,
			"routes": [
				{
					"path": "/",
					"type": "html",
					"method": "post"
				}
			]
		}
	]
}

Run NoLang app using npx

npx nolangjs . app.json

Run Nolang app by installing nolang cli

Installing nolang cli:
npm i nolangjs -g
Then run the app locally
nolang . app.json