a simple zero-configuration command-line http server (by http-party)


Basic http-server repo stats
25 days ago

http-party/http-server is an open source project licensed under MIT License which is an OSI approved license.

Http-server Alternatives

Similar projects and alternatives to http-server

  • GitHub repo TypeScript-Website

    The Website and web infrastructure for learning TypeScript

  • GitHub repo TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • GitHub repo json-server

    Get a full fake REST API with zero coding in less than 30 seconds (seriously)

  • GitHub repo remark

    Markdown processor powered by plugins part of the @unifiedjs collective (by remarkjs)

  • GitHub repo miragejs

    A client-side server to build, test and share your JavaScript app

  • GitHub repo mockoon

    Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, open source.

  • GitHub repo thingoftheday

    thingoftheday is a lightweight microblogging site powered by Contentful and vanilla HTML, CSS and JavaScript.

  • GitHub repo card-game-kit

  • GitHub repo azealot

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better http-server alternative or higher similarity.


Posts where http-server has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-05-11.
  • How to correctly deploy an Angular Universal website to a specific path? | 2021-05-13
  • What if an error is only occurring when on my own device? (Uncaught DOMException: The operation is insecure.)
    When you upload the project folder, all the files are being served over HTTP/HTTPS. It looks like locally you're opening things over the file system, which browsers treat differently. You should run a development server on your machine when working on stuff locally- try something like http-server or the Live Server VSCode extension.
  • A Promise of Asynchronous JavaScript | 2021-04-28
    If we don’t have a web server on our machine, we can use the simple, zero-configuration command-line http-server. You need Node.js installed on your machine. Npx is a tool for executing Node packages, and we can use it to run our server:
  • Import and export javascript
  • Making api calls and developing locally. | 2021-03-31
  • Create a Service Worker with TypeScript | 2021-03-23
    You can test the service worker by running your project locally with the http-server npm package. First make sure to compile the TypeScript service worker code by using the command npm run build-typecheck. Then, to install the http-server npm package run the command npm i http-server --save-dev. After installing run the command http-server in your project folder where the index.html and offline.html pages are. You should then see your website in the browser by navigating to the default http-server url localhost:8080. With browser dev tools you can inspect your website including managing service worker installation state and cache status.
  • Develop a PWA (Progressive Web App) With Angular😇 | 2021-03-21
    You can use any HTTP server, One easy way of doing this is to use the http-server npm pack.
  • Generate an XML Sitemap with Node.js | 2021-03-09
    Then to use the http-server npm package run the command npm run serve, and you should see the http-server npm package output the url it is serving. It is most likely the default setting so navigating to "localhost:8080/sitemap.xml" should show the sitemap file that will look similar to this:
  • How to build a lightweight microblogging site with Contentful, vanilla HTML, CSS and JavaScript | 2021-02-08
    If you want to use es6 syntax in your vanilla JavaScript file, you’ll need to serve your module file to the browser over an http-server in your local development environment. You can do this with this nifty npm package, aptly titled “http-server.”
  • Lord of the Rings: LCG webapp | 2021-01-30
    The documentation is quite lacking, my apologies for that. As u/jstavgguy mentioned, the file format of the decks is JSON. You can open up the files in any text editor and you will see that it's a pretty simple file identifying the cards to include and the location of their images. As I cannot provide the images to the cards, you will need to host them yourself somewhere. For example, I store them on a machine in my home office and run a NodeJS http-server on the machine to make them accessible to all my devices on the same network.
  • How to Serve a Single Page Application (SPA) using Rollup.js and Web Dev Server | 2021-01-19
    I suggest you review the content of dist/ files and make sure you have http-server installed before running the latest command.
  • How to quickly mock an API server in a client-side project | 2021-01-14
    In this tutorial, we walked through a very basic way to define data for a web application, generate hundreds of realistic records, then serve them from a mock API that can be consumed by the application. This is only a very bare minimum implementation of these steps. I highly advise going through the Mockaroo and json-server documentation for a wide variety of other uses and configurations that can suit your frontend development needs even more closely.
  • How I rebuilt my website and learned about Shadow DOM | 2021-01-10
    I came across http-server, which promised to be
  • 3 Reasons Why You Should Choose NGINX Over Http-server For Your Static Site | 2020-09-26
    I host this blog on an instance of AWS EC2, which runs ubuntu. For those who are unfamiliar with AWS EC2, it's a virtual machine that runs in the cloud and that you can do anything you want with. Because of this freedom, when the time came to chose the HTTP server that would serve my static files I had a lot of options. I considered different candidates but there were two clear favorites: NGINX and, perhaps, less known Node.js module called http-server.