I am trying to do some basic D3 programming. All the books I am reading talk about setting up a local http server and that is where I am finding myself stuck. I typed the following
python -m http.server
to host the local server. Now, my problem is how to open my html file in this local server? I don't even know how to find the file in the command prompt. Any help will be appreciated. The following is my html file code on aptana. I also have put the d3.js file in the aptana.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
D3 Page Template
</title>
<script type="text/javascript" src="d3.js"></script>
</head>
<script type="text/javascript">
//D3 codes will go here
</script>
</html>
When I am running aptana, the html file is opening in a regular firefox page. I want it to open in the locally hosted http server page. Any hints.