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
Then run the app locally
nolang . app.json