Pages

Wednesday, November 12, 2014

D3 local webserver


Command line:

for Python3.x:
                python3 -m http.server 8888 &
                (or)
for Python2.x:
                python -m SimpleHTTPServer 8888 &

The above code will activate the port 8888.
Then open the following URL.

                http://localhost:8888/

Html Template

<style>
.html{
font-size:16px;
font-family: Menlo, Monaco, Consolas, monospace;
}

</style>




<br />
<pre><code class="html">
 
   <html xmlns="http://www.w3.org/1999/xhtml">
   <head>
    <title>BiSpecialist</title>
    <link href="styles/stylesheet.css" rel="stylesheet"></link>
    <script charset="utf-8" src="http://d3js.org/d3.v3.min.js"></script>
    <script src="scripts/angular.js" type="text/javascript"></script>
    <script src="scripts/Script.js" type="text/javascript"></script>
   </head>
   <body>
</body>
</html>
</code>
</pre>