from Hacker News

Open Source Code Generator and Framework/Language Independent

by ferat on 3/20/18, 6:48 PM with 0 comments

Some weeks ago, I launched the AppStart MVP, a code generation platform. Today, I am putting the PWC engine, that runs on the back of the platform, completely opensource.

You can see all the repositories here: https://github.com/pwc-code-generator.

PWC was developed with Javascript/NodeJS, and includes these technologies:

SilverB Template Engine:  SilverB is a template engine but made for code and text generation and to be used with PWC Code Generator PWC Code Generator CLI: This is the main CLI Tool, responsible for filter the “Project File” data, sort by precedence according to the relationships, and build the “Smart Project Object”, that is passed to a generator (a generator is a separated software write in JS that uses the methods and tools of the Smart Project Object and the PWC Utils to facilitate the code generation). Laravel 5.5 Generator: This is the generator used on the AppStart platform MVP. It generates a Laravel 5.5 project with ACL. Currently, it is the unique available generator. I hope the guys are inspired to create more and more generators :D You can see all the documentation here. Not yet complete, but I will make it better as soon as possible. The code is not the better, and I will make a refactoring in the future, but you can already use it to make awesome things.

I hope PWC can be useful for you. Were many attempts and errors to make it. Here it helps a bit. Last week, I generated the complete backend of our new website with it. Practically, I worked only on the front, and with the time saved, I took the opportunity to learn Bootstrap 4. So, I think it can be useful for you.