This question already exists:
How to run d3 Javascript
Closed 8 years ago.
I am trying to set up d3 Javascript by following this link:
https://github.com/mbostock/d3/wiki . I am currently using Eclipse Juno and Tomcat in Mac 10.5.8. basically I am trying to run a simple Force-Directed graph example that was taken from the following link:
https://gist.github.com/mbostock/4062045
I have been recommended to insert the command below into the Terminal in order to get d3 run:
python -m SimpleHTTPServer 8888 &
With the Web Browser (Firefox in my case), I can insert:
http://localhost:8888/
. When I do this, I get the following message in the browser:
If you can see this, it means that the installation of the Apache web server software
on this system was successful. You may now add content to this directory and replace this page.
Seeing this instead of the website you expected?
This page is here because the site administrator has changed the configuration of this
web server. Please contact the person responsible for maintaining this server with questions.
The Apache Software Foundation, which wrote the web server software this site
administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.
The Apache documentation has been included with this distribution.
You are free to use the image below on an Apache-powered web server. Thanks for using Apache!
What that message means and why am I getting this type of message? How can I get the d3 run so long as I am getting this message?
It looks like that Apache and python are competing for the same port and since you start python in the background mode, it is not reporting the errors correctly.
Try starting python -m SimpleHTTPServer without an argument. It should start on port 8000 and serve the files from the folder it is started from.
The next steps would be to move the html file and the json file in the same folder where you started the server from. Then point your browser to http://localhost:8000/<name-of-your-html-file>.html.
Related
I paid someone to install a Js script on my server
but when i tried making some changes on scripts/files i just couldnt see the changes on browser
while browsing and googling for like 24 hours i figured out that js scripts should be restarted in order to show the result on browser
and i figured out that in order to start a node js file i should type in terminal
node /dir/example.js
but can someone help me how to refresh/restart it
Iam stuck here like 24 hours
please help
I just want to let you know too that iam using Putty software in order to connect to the ubuntu server, ubuntu version is 20.04
EDIT: you will need an ssh connection to your server with access to a terminal..
Your node.js scripts, if they are on a server, should typically be ran using a process manager such as pm2.
Try to type pm2 list in a terminal. If you see some information you have hit the spot. Just after that run pm2 restart id. id being the number of your process and your changes should be visible.
You can just try this or try your luck with other process managers that run on your server providers. Just read what your server provider recommends for default and usually your previous developer would have used it.
Developers i'm a nodejs developer with a experience of 1.5 years working in the company my question is i'm doing a project which is called a virtual classroom like a webinar platform where chat support, drawing and etc functionalities are available, so from last 2 month had been done of working in project i had gone through the each component directory and file with it's documents also they have used of docker, redis, proxy server, nginx, session, mongodb these kind of services and it's working fine on server end side but can't able to stablish on my local machine and it's a linux based project where have numbers of powershell files with PM2 library to make it run... so i followed a docs with some code also i success to make the service on and registered a local domain also in hosts file or nginx custom configuration it is working fine... but when i hit my ulr on browser with the local domain it not going to any of the route....
Example - like if we make a node simple project with hello world and it will working on 4500 port so we write localhost:4500 and it will print our responce on browser
but if the run my project through a PM2 or a simple node app.js bcoz this app.js have connected with all nodes services and virtual classroom and you the linux platform we don't need to make serivice on it's by default in runing state monogoDB, redis, docker, nginx but the real question is while firing the command node app.js it shows some json and told port:2178 but when in hit this on browser localhost:2178 not responce to GET request why??? but there is route called localhost:2178/landing/session/v1/classid(which is encrypted code) this url not working what to do ??
I have a node.js app that runs a server and sends index.html. The index.html interacts with the server.
I want to debug the complete app, but when I debug the app, WebStorm only debugs the server.
Is this even possible in WebStorm? If not, are there other tools that can do this?
In the Node.js run configuration, Browser/Live Edit tab, specify the URL of your server, tick both After launch and with JavaScript debugger checkboxes - client-side debugger will be launched once you start your node server with this configuration, so that you will be able to debug both simultaneously, using a single run configuration.
See also https://www.jetbrains.com/help/webstorm/debugging-javascript-in-chrome.html#debugging_js_on_external_web_server for some hints on debugging client-side code run in browser
I developed small Restful Web Service in VS2012 which should manipulate with database through entity framework.
Client side is HTML/CSS/JavaScript web site which shows data from database.
Is there any way to communicate by Ajax (to overcome cross domain issue) from my site to Restful Web Service without installing IIS, because I have really bad and slow computer and I need this only for quick test.
Can I host my web site somehow on service which Visual Studio uses to publish Services run by Visual Studio, or there is some other way how to test it quickly ?
If you're willing to use iisexpress Do this
Publish your website to any folder in your PC.
Then open a cmd window and run the following commands
cd "C:\Program Files\IIS Express"
on 64-bit OS,
cd "C:\Program Files (x86)\IIS Express"
Now the path would change to IIS Express>
Then run the following command
iisexpress /path:your\website\path\ /port:8030
This will start your website over the port 8030
IIS express will run as long as you don't close this cmd window. You can see iisexpress icon in the notification area also.
Easier way is to install IIS in your PC and host it with much better options.
I want to debug my html + javascript site in IDEA and Chrome browser.
When I press 'debug' in console i got:
Failed to load resource file:///C:/js/angular.min.js
As I undestand, I need to set root path of my web site in properties. But where this option?
Such urls (site root-relative, the ones starting with slash) can't be properly resolved when opening file locally (using file:// protocol) - the browser will search for these files in your system root (C:/). You need using remote javascript debug configuration (access your html using the web server url rather than local path) to make this work. See http://wiki.jetbrains.net/intellij/Debugging_JavaScript_with_IntelliJ_IDEA#Remote_debugging for more information on remote javascript debugging in Idea
Note that Idea 12 supports so-called built-in webserver (http://confluence.jetbrains.com/display/WI/built-in+web+server), so you can test your code without installing a web server.
Instead of accessing from local file system try to access your html + javascript application from a web server by putting those appication files in web server.
Install XAMPP or WAMP in your system and copy your application into the htdocs folder to run that application locally.Also edit the files using IDEA from there.So,you can parallely edit using IEDA and run using XAMPP.
http://www.apachefriends.org/f/viewtopic.php?t=14173.