Skip to content
David Cumps

GNaP

  • Infrabel
  • 2014-2015

GNaP was a free, open-source toolset I built at Infrabel to give every new application the same modern start: a standard Angular user interface on top of REST APIs, so any backend technology could sit behind it. Its site described it as “the starting point for building modern applications”. I built it with Stijn Roosen, Koen Metsu and Gert Servranckx, and wrote most of it: about 850 of its roughly 1,100 commits between March 2014 and early 2015. Everything was published under the BSD license, with packages on NuGet and npm.

One look for every application. The GNaP themes are a Grunt build that keeps the raw vendor templates and libraries, layers Infrabel’s look and feel on top, and packages the result for NuGet, npm and as a zip, so any technology can use it. The GNaP Angular theme adds ready-made pieces on top: navigation and breadcrumbs that follow the router, pagination, date pickers, typography, localisation in several languages, and a page of examples for each of them. I wrote 617 of the 755 commits in the themes, which shipped regular releases up to GNaP 1.26 and GNaP Angular 1.1.

A new application in one line. After npm install -g generator-gnap, running yo gnap asks for a name, a title, a theme and a port, and generates a complete Angular application with live reload and a production build. A second generator adds new pages to it. I moved the generator out of the themes into its own package and rebuilt it along the lines of angular-fullstack.

The .NET side. For the REST APIs behind the interface, I put together a Web API project template and a set of NuGet packages: API versioning through a route attribute, a JWT token issuer for OWIN, dependency injection for StructureMap and Ninject, and an ambient database scope for Entity Framework and NHibernate, adapted from Mehdi El Gueddari’s DbContextScope. Together, GNaP’s NuGet packages have been downloaded more than 70,000 times. I later built ESS for Firmware on them.

Documentation. Stijn Roosen and I wrote the documentation site, with a getting-started guide, videos and a live example site. The same theme also dressed Infrabel’s documentation wiki, Athena.

Technologies: C# 4.5, ASP.NET Web API, OWIN, JWT, Entity Framework, NHibernate, Ninject, StructureMap, NuGet, Angular, Yeoman, npm, Bower, Grunt, Node.js, HTML 5, CSS 3, REST, Git, GitHub, GitHub Pages, Scrum, Foreman, Clean Code.

Stijn Roosen
A true polyglot programmer, David has a broad knowledge of what matters in today’s software engineering. I worked with him on several architecture projects and have found him to be thorough in his work, but pragmatic when needed. I can highly recommend David as he certainly will add value to your team.
Stijn Roosen, Software Architect, Greenfield Consulting
Koen Metsu
David is a highly motivated developer, ready to bring everything to the table to deliver maintainable quality software. Not only is David quick to understand problems and requirements, he’s very likely to know what the customer wants even before they know it themselves. He’s constantly training himself through deliberate practice, and will share what he learned with the team, improving not only the software but also the team around it. David is a true craftsman and our time as colleagues has been a pleasure. I’d immediately work with him again.
Koen Metsu, Software Engineer, KometSoft
Gert Servranckx
I’m glad to be working together with David. He is a highly skilled software engineer who introduced multiple new ideas to modernize architecture, improve software quality and team follow-up.
Gert Servranckx, .NET Solution Architect, Demareg

You May Also Like