This repo serves as an example website generated with the generic-website package. It's super minimalistic, as it is meant to be.
.gitignore-> Assuming this is fairly straightforward as you're browsing this on github..gwrc-> This is probably the most important file as it describes the website you want generated inJSON.package.json-> No fields are truly filled in (on purpose). the only things that really matter are within thedependenciesfield. You notice thegeneric-websitepackage +express. Of course, you can use any nodejs server with thegeneric-websitepackage (like Koa or Hapi), I'm just familiar withexpress. Next todependencieswe have 1devDependency,nodemonis currently used to run theexpressserver. Considering the fact that this package should only be used for very simple static websites,nodemonwill probably suffice. Sorrywebpacklovers.server.js-> Probably the most standard server config ever. There is, however, 1 interesting line:
res.send(generateWebsite())The generateWebsite function is provided by the generic-website package. It parses the .gwrc file to an html string (yes a string! Server-side rendering ftw!).