Questions tagged [total.js]

total.js is a Web application framework for node.js

Total.js Platform


About

Total.js framework was written in 2013 from scratch. The main idea of the framework is to be complex, stable and without dependencies. Total.js Platform is a collection of libraries, packages and complete products in the most cases written in Total.js framework.


Links

The framework feature list

  • Amazing server-side and client-side solution with no dependencies
  • Low CPU and memory requirements, e.g. works on ARM architecture
  • Built-in small NoSQL embedded database with great analytics tools and incredible performance
  • Supports WebSocket and Server-Sent events
  • Supports auto-compression for all .js, .html and .css
  • CSS supports auto-vendor-prefixes, variables and nested selectors
  • Full web server with serving of static files and with GZIP compression
  • Supports SMTP mail sender
  • Supports great View Engine (conditions, loops, localization, etc.)
  • Supports localization
  • Supports media streaming
  • Supports workers for heavy CPU operations
  • Supports themes
  • Built-in a lot of helpers for String, Number, Array and Date types
73 questions
0
votes
1 answer

How to use AJAX function in Total js?

I have a User form and I am trying to do a POST. Earlier code with schemas work. I am fitting in AJAX just now and I dont have a clue why it is not working. There is no error. Below is code snippet from users.html file
Ganga
  • 5
  • 1
  • 2
0
votes
1 answer

In total.js is it possible to assign value to variables or save/use the index of a @{foreach...} inside a nested @{foreach...} inline in the HTML?

for example is it possible to define/use an "item_index" in a similar example to this:
@{foreach item in list}

@{item.title}:

@{foreach content in item.contents}

@{content.name} is the @{index}th content of @{item.title}, and…

Garen
  • 30
  • 3
0
votes
1 answer

what is the best way to debug and find errors in a total.js app like the eshop provided on their website?

I have been following everything the total.js documentations have to offer to be able to work with the eshop project. however, sometimes i get errors and the only thing i see is 404 on the browser whether the error is from api or frontend or…
Garen
  • 30
  • 3
0
votes
1 answer

page not rendering totaljs

I am new to Total JS and I am creating my first project. My sample page is not rendering and returning a 404.
Ganga
  • 5
  • 1
  • 2
0
votes
1 answer

How to dynamically change component color in Total.js Flow

I am using Total.js Flow and I am trying to modify the existing code to be able to change the component color dynamically. For example, using the "Light" component from the devices section, when the light is on, I want the color of the component to…
user3399643
  • 9
  • 1
  • 5
0
votes
2 answers

How to save and retrieve the response from the "RESTBuilder" on Total.js platform

Inspired by this post build a cryptocurrency comparison site- with vuejs I want to write a single-page application using the total.js platform to get the coins list from the "coinmarketcap.com" api, and store the response into the database. I've…
teseh
  • 1
  • 2
0
votes
1 answer

totaljs --translate command does not find all texts for translation , despite wrapped in ‘@()’ tag

I followed this documentation and executed total.js --translate command in the root directory of total.js eshop app. But many words despite wrapped in ‘@()’ tag not available for translation in the created file. For example …
teseh
  • 1
  • 2
0
votes
1 answer

how to charge components dynamically?

I use the plugin total.js flow. I would like to know if there is a function like FLOW.Reload() to dynamically reload the components?
0
votes
1 answer

Get parameter in totalJS Flow?

I would like to get parameter on my flow, for example, http://localhost:8000/?param1=12. If i want to recup param1 in my application, how and where can i do it ?
0
votes
1 answer

Use socket.io object in total.js

I'm using socket.io in total.js and want to use the io object in a module. how can i access the io object in a module? (pass the object or set the global framework object?) the initialization code: require("total.js"); ON("load", function() { …
Pourya8366
  • 3,424
  • 4
  • 21
  • 28
0
votes
1 answer

dynamic route for http-request in total.js flow

How to use dynamic url for http-request in total.js flow. I am able to get params from route component but how to pass this to http-request url ?
Pritam Parua
  • 672
  • 2
  • 8
  • 27
0
votes
1 answer

How to find out which get and post request called in same function handler?

According to this example: ROUTE('GET /api/users/', action); ROUTE('POST /api/users/', action); in the body of function action how we can find out get or post request has been called so that write appropriate code?
Pourya8366
  • 3,424
  • 4
  • 21
  • 28
0
votes
2 answers

Heroku can't find module

I'm new with heroku. I've being following the tutorial for deploying node on heroku. In fact, I'm trying to deply total.js eshop on heroku... but I can't solve the following error. 2018-10-28T10:08:58.151845+00:00 heroku[web.1]: Starting process…
Roberto Gimenez
  • 278
  • 4
  • 11
0
votes
1 answer

Total js: F.model is returning null

Below const deposit is returning null value. But the same line is working in the different controller in same directory. I just included this lines in new controller file in same directory. Is anything else needed? const deposit =…
Rahul Saini
  • 216
  • 1
  • 16
0
votes
1 answer

Error with creating new route with total.js

I have the following problem with totals.js.When I try to add new route I get the following error: The controller's route does not define any schema. (http://0.0.0.0:8000/****/****/****/1) I have added this method to the schema with…