zents-cli

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

Usage no npm install needed!

<script type="module">
  import zentsCli from 'https://cdn.skypack.dev/zents-cli';
</script>

README

ZenTS Logo

GitHub top language GitHub code size in bytes GitHub issues GitHub pull requests npm node-current Website NPM

Website | Documentation | Roadmap | Changelog | Twitter | npm

ZenTS is a fast and modern MVC framework for Node.js & TypeScript.

Quick Start

ZenTS is a Node.js framework and available through the npm registry.

Before you can start using ZenTS, you need to download and install Node.js for your operation system. After installing Node.js you can create a fresh ZenTS project with the CLI:

npm i zents-cli -g
zen create myproject
cd myproject
zen dev

The above command will install the latest version of the CLI globally and creates a new ZenTS project in the myproject folder.

Features

  • Robust controller and service containers
  • Super fast routing system
  • Autoloading capabilities, never manage a list of project dependencies by yourself again
  • Session and user management with redis, ORM or filesystem storage
  • Ships with TypeORM out-of-the-box
  • Includes a battle tested template engine (Nunjucks)
  • Easy accessible request and response context
  • Auto response workflows
  • Many, many more

Documentation

Head over to the official website and read the documentation.

Breaking changes in v0.3.0

Version 0.3.0 introduced all new context decorators like @body, @params and @context. Previously to v0.3.0 every controller action was passed a context argument, this is not the case anymore. The dependency injection system cares now about which context interfaces are necessary for a controller action. Thus, you've to use the new decorators for accessing things like the request body. The easiest way to upgrade to v0.3.0 is to use the @context decorator, which is the same, then the context argument used in v0.2.0.

Check out the controller documentation for more information.

License

MIT