Total.js Platform
Total.js Platform

Total.js Platform news and tutorials

Total.js without NPM? Absolutely. Run the framework from pure Node.js

Run Total.js v5 without NPM installation

This sounds almost illegal, but it works: you can run the Total.js framework without installing it from NPM. Just pure Node.js, dynamic loading, and the full power of Total.js ready to go.

Just keep the standard Total.js directory structure - controllers, views, definitions and the usual suspects and everything will work like a charm. The framework will detect your app structure and run it exactly as expected.

Create index.js file:

And run it $ node index.js. That’s it. Boom - your Total.js app is running.

Single app file

Don’t want to create a full directory structure and prefer a single run script with everything inside? No problem. Check out the code below - one file, one command and your Total.js app is ready to roll.

Create index.js file:

And run it $ node index.js.