25

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
  • 0
    Perhaps I mix it up with ExpressJS but have you tried

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

    To send the response.
  • 1
    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.
  • 0
    NodeJS rocks!
  • 0
    @JackToolsNet That's Express.
Your Job Suck?
Get a Better Job
Add Comment