STAXIS

C B staxis js platform -> gitlab project
This site is currently under construction. Feel free to take a look around, but please come back in a few days

project configuration

Before continue with some advanced process, the last thing to understand at this stage is the configuration.

Staxis has a config.js file, which is where you can define all sorts of parameters for the system.

It is populated according to its own standard by each added pack.

In fact, each pack has its own configs.js (note the final β€œs”), which contains its default settings to be added to its installation.

By default, the configurator appears simple and allows you to modify many of the basic targets and sets... however, Staxis is a massive system, and that configuration will very easily become just as extensive. It’s a compromise chosen to provide a high degree of customization and declarative safety all in one place.

                export const config = {
                    stack: [
                        'helloworld'
                    ],
                    engineopt: {
                        acceptEval:false,
                        gitlab:{
                            asktologin: true,
                            appID: `THIS_IS_A_DEMO_KEY` //make your app key please
                        },
                        folders: {
                            lrpcks: 'system-lrpcks',
                            dlogs: 'system-logs',
                            temp: 'system-temp',
                            exec: 'system-exec',
                            core: 'system-core'
                        },
                        prodVar: 'ENGINE_ENV',
                        prodVal: [
                            'prod',
                            'production'
                        ],
                        ebehavor: 'exit',
                        fastload: false,
                        showlogo: true,
                        cleanafter: false,
                        securebundle:true,
                        readytext: '✨ ready!',
                        syszone: 'Europe/Rome',
                        keylocks: [],
                        audit: {
                            logDebug: false,
                            logLibs: true,
                            logLayered: true,
                            logDeeply: false,
                            logWarn: true,
                            printlog: true,
                            printdebug: false
                        },
                        guard: {
                            allowedDeps: [],
                            allowedImports: [],
                            allowedExceptions: [],
                            guardIncludes: [],
                            allowOpaqueExecution: false,
                            allowNodeDeps: true,
                            allowBareDeps: false,
                            onlyExplicitImports: true,
                            allowedFileAccess: [],
                            checkExts: [
                                // '.js',
                                // '.mjs',
                                // '.cjs',
                                // '.ts',
                                // '.jsx',
                                // '.ejs',
                                // '.mts'
                            ],
                            excludeRoots: [
                                'system-core',
                                'node_modules',
                                '.git'
                            ],
                            excludeDirs: [
                                'node_modules',
                                '.git'
                            ]
                        }
                    }
                }

            

This is an overview of the main files. Installing packs and running the project can add dependencies, output files, and pack-specific directories.

An exemple of configs.js into a pack:

                export default {
                    serveropt: {
                        pingsEnable: true,
                        pingsSaved: false,
                        pingFilter: false,
                        pingQueries: false,
                        pingPong: false,
                        pingPongMessage: false
                    }
                }
            

How you can see, this is a small example of how pack adds options into the standard configuration of staxis, in this case for a server, with some ping flags.

The stack

Obviosly, the stack is the main array, the ordered list, about all your pack, so abaout of all your scripts. It's litteraly the register of all layer pointers into Staxis. System get that list and build your software ready to launch. If somethings is wrong, system tell you everything is possible.

This is not a right place to understand how you can make your custom layer for the stack, it's just important to understand that fact about it exist in this confinguration.

The engineopt

The engineopt provide all basic configuration about the loop into the engine system. it's a list of foundamental options for differents sector, like forlders, positions, audit logs, guardina accessibilities and other.

Usually, any macro zone of the config end with opt (like serveropt)