Questions tagged [local-web-server]

Use this tag when referring to local-web-server, a modular web server written in node.js.

See the github page for more information about local-web-server.

9 questions
4
votes
2 answers

Set custom port when starting symfony local web server

I want to start a server with symfony server:start using the port that is set in my .env file. Is there a way to do this?
user2041284
  • 49
  • 1
  • 1
  • 2
3
votes
3 answers

How to load complete website from assets?

Is there any possibility to load complete website (including associated files) from local assets ? I tried it with flutter plugin webview_flutter and loaded index.html. Future loadLocal() async { return await…
Shahzad Akram
  • 4,586
  • 6
  • 32
  • 65
3
votes
2 answers

Node.js local-web-server: can't find module ws (installed globally)

I want to start a simple local webserver for local development on Windows 7. For this I installed node.js and then ran: npm install -g local-web-server Next I went to the folder D:\[path_to_webcontent] containing the index.html, started a…
sotix
  • 822
  • 1
  • 8
  • 23
0
votes
0 answers

How to allow cross-domain requests with local-web-server?

I use local-web-server 5.3.0 to run my single page application locally: ws --spa index.html When the app tries to get data from a publically available URL https://www.my-domain.com/my-file.json, the request fails with: Status 504 Gateway…
Marco Eckstein
  • 4,448
  • 4
  • 37
  • 48
0
votes
0 answers

potree Desktop how can i show the jason5 file in webbrowser

i used potree desktop to get all my pointclouds in one jason5 file. How can view this file on my local webrowser? i am a javascript/html beginner. I can reopen the jason5 file in potree desktop and see all my pointclouds. How can i view and imbed…
0
votes
1 answer

How to expose your local server for webhooks during development without third part services?

How can I expose my localhost server for webhooks during development without third part services like ngrok? I was watching this video on how to create a simple telegram bot and they have used ngrok to expose their localhost server to the internet…
YulePale
  • 6,688
  • 16
  • 46
  • 95
0
votes
0 answers

Trying to run node server with local-web-server - cli module returning 'not defined'

I am trying to spin up a local server on my machine in node. I am using the local-web-server package to do so. I have installed the package globally and in my project, however when I run yarn start It was given the following error. It seems to…
kdub1312
  • 803
  • 2
  • 9
  • 19
0
votes
1 answer

local-web-server proxy not forwarding request

So I'm writing a series of automated tests for a single page react application. The tests rely on a mocked api that's exposed on a different port than the application is served from. In order to get around cors issues, the local-web-server instance…
0
votes
1 answer

Unable to start Apache server on XAMPP with port available

I have XAMPP server installed on Windows 10. I changed ports the first time I used it and it worked fine until a few days ago. Now I get the error: 10:21:59 [Apache] Error: Apache shutdown unexpectedly. 10:21:59 [Apache] This may be due to a…
Giulia Marra
  • 29
  • 1
  • 7