Quick and dirty out-of-the-box web-server Quick and dirty out-of-the-box web-server
Page 1 of 2 12 LastLast
Posts 1 to 10 of 12
  1. #1

    My post count is Majestic

    d000hg's Avatar
    Join Date
    Dec 2007
    Location
    My house
    Posts
    32,098

    Default Quick and dirty out-of-the-box web-server

    A lot of development work I do involves interacting with remote Web-APIs. Sometimes there is a simulator, but often I could get by with some hand-crafted JSON/XML files and just tell a noddy web-server to return a given file no matter what request it's given, or map a given URL to a static file.
    I'm not a web-dev or I'm sure this is trivial in PHP but I wonder can I use some standalone application to just run up and it is a web-server on 127.0.0.1:xxxx like I describe? Sort of the way Jenkins does in a way. I do not want to setting up IIS or Apache!
    Quote Originally Posted by MaryPoppins View Post
    I'd still not breastfeed a nazi
    Quote Originally Posted by vetran View Post
    Urine is quite nourishing

  2. #2

    TykeLike

    SimonMac's Avatar
    Join Date
    Aug 2010
    Location
    God's Own Republic Of Yorkshire
    Posts
    23,215
    “Live a good life. If there are gods and they are just, then they will not care how devout you have been, but will welcome you based on the virtues you have lived by. If there are gods, but unjust, then you should not want to worship them. If there are no gods, then you will be gone, but will have lived a noble life that will live on in the memories of your loved ones.”

    ― Marcus Aurelius

  3. #3

    My post count is Majestic

    d000hg's Avatar
    Join Date
    Dec 2007
    Location
    My house
    Posts
    32,098

    Default

    Sounds interesting, I'll take a look. Thanks.
    Quote Originally Posted by MaryPoppins View Post
    I'd still not breastfeed a nazi
    Quote Originally Posted by vetran View Post
    Urine is quite nourishing

  4. #4

    My post count is Majestic

    NickFitz's Avatar
    Join Date
    Jun 2007
    Location
    Your local branch
    Posts
    46,069

    Default

    Either Node or Python can give you a quick-and-dirty web server good enough for non-production use:

    How to serve static files | Node.js

    Serve Your Current Directory With Python and HTTP | Nicolas Mesa

  5. #5

    Fingers like lightning

    BlueSharp's Avatar
    Join Date
    Jul 2012
    Posts
    746

    Default

    Take a look at Postman it has a feature called mock server where you can type in the response you want from any given path and http verb.

    Setting up a mock server | Postman Learning Center
    Last edited by BlueSharp; 13th September 2019 at 12:56.

  6. #6

    My post count is Majestic

    northernladuk's Avatar
    Join Date
    Mar 2009
    Posts
    40,462

    Default

    Why does everyone want everything dirty nowadays??

    Is is some millennial term like 'sick' or summat?
    'CUK forum personality of 2011 - Winner - Yes really!!!!

  7. #7

    TykeLike

    SimonMac's Avatar
    Join Date
    Aug 2010
    Location
    God's Own Republic Of Yorkshire
    Posts
    23,215

    Default

    Quote Originally Posted by northernladuk View Post
    Why does everyone want everything dirty nowadays??

    Is is some millennial term like 'sick' or summat?
    MS-DOS is an evolution of 86-DOS which originally named QDOS (Quick and Dirty Operating System)
    “Live a good life. If there are gods and they are just, then they will not care how devout you have been, but will welcome you based on the virtues you have lived by. If there are gods, but unjust, then you should not want to worship them. If there are no gods, then you will be gone, but will have lived a noble life that will live on in the memories of your loved ones.”

    ― Marcus Aurelius

  8. #8

    My post count is Majestic

    northernladuk's Avatar
    Join Date
    Mar 2009
    Posts
    40,462

    Default

    Quote Originally Posted by SimonMac View Post
    MS-DOS is an evolution of 86-DOS which originally named QDOS (Quick and Dirty Operating System)
    Well you learn something new every day!
    'CUK forum personality of 2011 - Winner - Yes really!!!!

  9. #9

    More time posting than coding

    wattaj's Avatar
    Join Date
    Aug 2006
    Posts
    244

    Default

    Quote Originally Posted by northernladuk View Post
    Why does everyone want everything dirty nowadays??
    There's less opportunity to be caught by the kids.
    HTH.
    ---

    Former member of IPSE.

  10. #10

    My post count is Majestic

    d000hg's Avatar
    Join Date
    Dec 2007
    Location
    My house
    Posts
    32,098

    Default

    Quote Originally Posted by northernladuk View Post
    Why does everyone want everything dirty nowadays??

    Is is some millennial term like 'sick' or summat?
    Yes except it's been around since before you were born.

    quick-and-dirty - Wiktionary
    Quote Originally Posted by MaryPoppins View Post
    I'd still not breastfeed a nazi
    Quote Originally Posted by vetran View Post
    Urine is quite nourishing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •