You are here |
sumercip.com | ||
| | | |
ericlathrop.com
|
|
| | | | I often need to view a bunch of static HTML files in my browser locally, and I often need to open them with http:// rather than file:// URLs so related CSS or JavaScript files load correctly. Luckily, Python provides a simple web server, and most Linux distros include Python. | |
| | | |
markodenic.com
|
|
| | | | Free programming books, algorithms, public APIs, and much more. | |
| | | |
logr.cogley.info
|
|
| | | | Many static site generators like Hugo have a built in dev web server. If you are just building some html with css, and need a simple solution to serve the files from any folder, you have a few solutions. See a couple of options: Node.js users can install and run http-server: 1 2 3 4 npm install -g http-server cd /path/to/my/working/folder http-server --help http-server Visit http://localhost:8080 and look at the help to change the port. | |
| | | |
www.ethanrosenthal.com
|
|
| | I make Python packages for everything. Big projects obviously get a package, but so does every tiny analysis. Spinning up a quick jupyter notebook to check something out? Build a package first. Oh yeah, and every package gets its own virtual environment. Let's back up a little bit so that I can tell you why I do this. After that, I'll show you how I do this. Notably, my workflow is set up to make it simple to stay consistent. |