26

Node.JS is great sometimes. Here is my HTTP(s) server script, which is 117 generously spaced lines, including a small database of MIMEs, which serves raw files OR allows you to set up request handlers like the one you see here.

Very, super happy with the outcome.

Comments
  • 1
    Perhaps I mix it up with ExpressJS but have you tried

    response.status(200).json({ response: message });

    To send the response.
  • 2
    I like nodeJs for 1 main reason: I can do anything that I want with it whether it's a web app or I have to control conveyor belt system. Few lines of code and everything is 4eady to go.
  • 1
    NodeJS rocks!
  • 1
    @JackToolsNet That's Express.
Add Comment