Skip to content

2023-07-13: React functionality #354

Closed

Description

@Fade253

Is your feature request related to a problem? Please describe.
i am trying to run node-windows with react but have no idea which file to run it with, i have tried the development server but that didnt have any luck at all, i have tried index, it hates imports, and tried the setup to the C# side i have that isnt the main backend and nothing works

Describe the solution you'd like
Allow for just setting it up with index and not having to do anything else for react

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
if you cant make it work for index at least fix trying to run it with the development server as it gets an internal error trying to find the script folder the server is IN

Please use the reactions to cast a vote in favor of or against this feature suggestion »

Activity

  1. coreybutler commented on Jul 13, 2023

    @coreybutler
    Owner

    I'm not entirely clear what you're trying to do here, so please clarify if I'm off base in my response.

    node-windows creates and manages background services, such as web servers and APIs. React is a frontend framework that runs in browsers, not in Node. React has some node-based build tools (i.e. create-react-app), but those aren't designed to be background services either.

    node-windows would be more appropriate for a "main backend", i.e. the web server. It sounds like your backend is written in C#, so node-windows likely isn't the right fit for this scenario. If you had an Express/Restify/Fastify backend server, then node-windows would be a more appropriate fit.

    If you need:

    • A static web server to develop frontends: Fenix Web Server
    • A static web server to serve production React code: Caddy Server, NGINX, Apache, IIS, etc.
    • Roll your own Node server: Node server + node-windows

    I'm going to close this since I don't think it is in the scope of what node-windows is for, but I will convert this issue to a discussion.

  2. Repository owner locked and limited conversation to collaborators on Jul 13, 2023
  3. converted this issue into a discussion #355 on Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions