Today web development can be done in many ways and there appear more and more frameworks to make your life easier. Zero is a web framework for modern web development. It allows you to build your application without worrying about package management or routing. It’s as simple as writing your code in a mix of Node.js, React, HTML, MDX, and static files and putting them all in a folder. Zero will serve them all.
Zero abstracts the usual project configuration for routing, bundling and transpiling to make it easier to get started.
Auto Configuration: Your project folder doesn’t require config files. You just place your code and it’s automatically compiled, bundled and served.
File-system Based Routing: If your code resides in
./api/login.js it’s exposed at
http://<SERVER>/api/login. Inspired by good ol’ PHP days.
Auto Dependency Resolution: If a file does
require('underscore'), it is automatically installed and resolved. You can always create your own
package.json file to install a specific version of a package.
Multiple Languages: Zero is designed to support code written in many languages all under a single project. Imagine this:
- Exposing your Tensorflow model as a python API.
- Using React pages to consume it.
- Writing the user login code in Node.js.
- Your landing pages in a mix of HTML or Markdown/MDX.
By default, Zero compiles and serves all files in your project. But most of the time, you don’t want to expose a certain file or folder. You can add
.zeroignore file to prevent Zero from serving that file as a valid route.
Please see here for more code examples.
We also included Zero to the list of the most popular JS repositories on GitHub in March.
p.s. Explore the detailed information and comparison for the main Node.js web frameworks for 2019.