Joined June 2011
·
Posted to
Easiest way to start a basic local webserver.
over 1 year
ago
if you often work on multiple services at once, and don't mind using npm packages, http-server
is great: it automatically finds an available port if you don't specify one:
> npm install -g http-server
> http-server
Starting up http-server, serving ./ on port: 8080
Hit CTRL-C to stop the server
...
> http-server&
Starting up http-server, serving ./ on port: 8081
> http-server&
Starting up http-server, serving ./ on port: 8082
Posted to
Npm install trick
over 1 year
ago
Note there's also --save-dev and --save-opt to save into development and optional dependencies respectively.
Achievements
175 Karma
0 Total ProTip Views
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2014
Forked 20
Have an established project that's been forked at least 20 times
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2013
Lemmings 100
Write something great enough to have at least 100 watchers of the project
Cub
Have at least one original jQuery or Prototype open source repo
24PullRequests Participant
Sent at least one pull request during the first 24 days of December 2012
KO Contender
Participated in 2012 Node Knockout
Philanthropist
Truly improve developer quality of life by sharing at least 50 individual open source projects
Komodo Dragon
Have at least one original repo where Java is the dominant language
Altruist
Increase developer well-being by sharing at least 20 open source projects
Honey Badger 3
Have at least three Node.js specific repos
Honey Badger
Have at least one original Node.js-specific repo
Kona
Have at least one original repo where CoffeeScript is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Correct me if I'm wrong, but I believe this is now superseded by node core's peer dependencies: http://blog.nodejs.org/2013/02/07/undefined/