backend api #313

Closed
kevsmt opened this Issue Jan 6, 2013 · 7 comments

Comments

Projects
None yet
3 participants
@kevsmt

kevsmt commented Jan 6, 2013

Hi, just thought if we can use:

{
    "backend": {
        "path": "node_modules/backend"
    },
    nodejs: false
}

i tried node-main and nodejs to false, but it didnt work. Use case is, easy migration of existing application which uses only node for database fetching data and other server side nodejs logics.

@rogerwang

This comment has been minimized.

Show comment Hide comment
@rogerwang

rogerwang Jan 7, 2013

Member

I'm not sure what do you mean by backend, but if it's referred to something like a HTTP server, there is no such thing built-in in node-webkit.

And could you please describe the use case in more detail? I don't see anything preventing easy migration.

Member

rogerwang commented Jan 7, 2013

I'm not sure what do you mean by backend, but if it's referred to something like a HTTP server, there is no such thing built-in in node-webkit.

And could you please describe the use case in more detail? I don't see anything preventing easy migration.

@kevsmt

This comment has been minimized.

Show comment Hide comment
@kevsmt

kevsmt Jan 7, 2013

Hi roger,

Yes something like that, what i imagine is, possibility to disable nodejs support in chromium, and execute a nodejs script like node_modules/backend-server/server.js something like node-main does, to/which creates a node http server, but a possibility to disable nodejs support in chromium.

kevsmt commented Jan 7, 2013

Hi roger,

Yes something like that, what i imagine is, possibility to disable nodejs support in chromium, and execute a nodejs script like node_modules/backend-server/server.js something like node-main does, to/which creates a node http server, but a possibility to disable nodejs support in chromium.

@rogerwang

This comment has been minimized.

Show comment Hide comment
@rogerwang

rogerwang Jan 7, 2013

Member

you can launch http server with node modules in existing node-webkit; but why do you want to disable Node support in chromium? Is it due to name conflict such as require?

Member

rogerwang commented Jan 7, 2013

you can launch http server with node modules in existing node-webkit; but why do you want to disable Node support in chromium? Is it due to name conflict such as require?

@kevsmt

This comment has been minimized.

Show comment Hide comment
@kevsmt

kevsmt Jan 7, 2013

Hi roger,

Yes due to require, since i wish to use onilabs/apollo on node-webkit.

kevsmt commented Jan 7, 2013

Hi roger,

Yes due to require, since i wish to use onilabs/apollo on node-webkit.

@rogerwang

This comment has been minimized.

Show comment Hide comment
@rogerwang

rogerwang Jan 7, 2013

Member

@kevsmt here is a workaround for you:

<script type="text/javascript">
    window.requireNode = window.require;
    window.require = undefined; 
</script>
Member

rogerwang commented Jan 7, 2013

@kevsmt here is a workaround for you:

<script type="text/javascript">
    window.requireNode = window.require;
    window.require = undefined; 
</script>
@kevsmt

This comment has been minimized.

Show comment Hide comment
@kevsmt

kevsmt Jan 7, 2013

@zhchbin - Thanks i tried it but node-main didnt execute.
@rogerwang - Thanks i will try that.

kevsmt commented Jan 7, 2013

@zhchbin - Thanks i tried it but node-main didnt execute.
@rogerwang - Thanks i will try that.

@daanporon

This comment has been minimized.

Show comment Hide comment
@daanporon

daanporon Jan 7, 2013

I also had issues with this and did is as explained in the topic below to work around it:
https://groups.google.com/forum/#!topic/node-webkit/GwfuHwYFx8E

I also had issues with this and did is as explained in the topic below to work around it:
https://groups.google.com/forum/#!topic/node-webkit/GwfuHwYFx8E

@rogerwang rogerwang closed this Sep 4, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment