Coder Social home page Coder Social logo

Comments (3)

petersirka avatar petersirka commented on August 28, 2024

The servicemode option is a special mode for the Total.js framework. It will run the app without an HTTP server. I didn't test this mode with the Flow, but the Flow uses our standard predefined starting script: https://github.com/totaljs/framework4/blob/master/helpers/index.js.

If you're looking for something special, please look at these repositories:

What is the service mode used for? Imagine that you need to create a service (not in Flow) that can do some DB operations or imports or provide some events without needing to publish its API. Service mode will run the app as usual, but without mentioning an HTTP server.

from flow.

developedsoftware avatar developedsoftware commented on August 28, 2024

Ah OK understand. If flow isn't started with a web server running would you essentially have to build your own UI and routers to interact with the application.

Am I right in assuming service mode just exposes the api ?

Apologies if I am missing some key concept here!

from flow.

petersirka avatar petersirka commented on August 28, 2024

Ah OK understand. If flow isn't started with a web server running would you essentially have to build your own UI and routers to interact with the application.

No because how do you want to build UI to the Flow if the web server is not started?

Am I right in assuming service mode just exposes the api ?

No, it doesn't expose the API. API is blocked/not started in service mode.

Apologies if I am missing some key concept here!

The service mode isn't meant for the service / REST API. It's deaf and blind.

from flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.