Menu

🔥 Server.js 1.0 Released: A Super Simple Server Object – #angularjs #reactjs #javascript #100DaysOfCode #vuejs

November 6th, 2017

  • Powerful server for Node.js that just works so you can focus on your awesome project: – – There’s a whole tutorial on getting started for beginners but the quick version is to first install as a dependency: – – Then you can create a file called with this code: -…
  • The package is great for many situations.
  • Some of the included features: body and file parsers, cookies, sessions, websockets, Redis, gzip, favicon, csrf, SSL, etc.
  • Freelancing helps maintain and my other open source projects up to date!
  • You can also sponsor the project, get your logo in here and some other perks with tons of ♥

Flexible and powerful server for Node.js

Powerful server for Node.js that just works so you can focus on your awesome project:

There’s a whole tutorial on getting started for beginners but the quick version is to first install as a dependency:

Then you can create a file called with this code:

Execute this in the terminal to get the server started:

And finally, open your browser on localhost:3000 and you should see ‘Hello world!’ on your browser.

The library is documented here:

You can also download the repository and try the examples by browsing to them and inside each of them in .

The package is great for many situations. Let’s see some of them:

Everything works out of the box, you get great support for most features and you can easily tap into Express’ middleware ecosystem. What’s not to love?

Some of the included features: body and file parsers, cookies, sessions, websockets, Redis, gzip, favicon, csrf, SSL, etc. They just work so you will save a headache or two and can focus on your actual project. Get a simple form going:

From the flexibility and expressivity of the bundle, designing APIs is a breeze:

Websockets were never this easy to…

Server.js