Get the latest tech news

Show HN: Citizen – A Node.js web app framework for fans of classic app servers


Node.js MVC web application framework. Includes routing, serving, caching, session management, and other helpful tools. - jaysylvester/citizen

High performance and stability Convention over configuration, but still flexible Zero-configuration server-side routing with SEO-friendly URLs Server-side session management Key/value store: cache requests, controller actions, objects, and static files Simple directives for managing cookies, sessions, redirects, caches, and more Powerful code reuse options via includes (components) and chaining HTML, JSON, JSONP, and plain text served from the same pattern ES module and Node (CommonJS) module support Hot module replacement in development mode View rendering using template literals or any engine supported by consolidate Few direct dependencies app.controllersapp.modelsapp.views It's unlikely you'll need to access controllers and views directly, but referencing app.models instead of importing your models manually benefits from citizen's built-in hot module replacement. Properties of the params object config Your app's configuration, including any customizations for the current controller action route Details of the requested route, such as the URL and the name of the route controller url Any parameters derived from the URL form Data collected from a POST payload The raw request payload cookie Cookies sent with the request session Session variables, if sessions are enabledIn addition to having access to these objects within your controller, they are also included in your view context automatically so you can reference them within your view templates as local variables (more details in the Views section).

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Citizen

Citizen

Photo of fans

fans

Photo of classic app servers

classic app servers

Related news:

News photo

Life is Strange: Double Exposure's first two chapters are mostly good, but making fans pay extra to play early is a huge mistake

News photo

Japan's Kojima, with its proud Jeans St, draws fans of vintage, deep-blue denim

News photo

Fans have already found a way to make Link the main protagonist in The Legend of Zelda: Echoes of Wisdom