How to use Wingman
How to create your first blog using "wng"
v0.0.0 - The first steps to a new platform
Wingman was supposed to be a static site builder that would support the Gopher, Gemini, and HTTP protocols. It had a simple API and would generate your entire site into a single HTML file and stylesheet. Each article would be linked as an id and there would be scant else attached. This was fine, and in all regards an easy project. Except for the fact that I decided to write the program in Rust. Rust is quite the enjoyable language, but due to its low level nature writing in it can be obtuse. Especially for web development where most of the work comes from automating text generation, field serialization/deserialization, and hydrating templates. It was annoying to make work in Rust, and the benefits of the language were much outweighed by the costs. So, I took a break. Really, I gave up. But a few months later after discovering and teaching myself Go I realized that it was the perfect contender for Wingman. A rich templating library, cross-platform compilation, a GC designed for network applications and a simple syntax that made iteration adn development a breeze. Compared to the slow and laborous Rust, Go felt like a pencil on a sketchpad where I could write my ideas into being with little setup.
So, I’ve rewritten Wingman, and to reflect this change I’ve created a new repository and name for the executable: wng. The project will continue to be referred to as Wingman, but for all future development and projects please use the wng binary. Not the Wingman binary you can find on crates.io. The project has also switche to an MIT license. I don’t care if you repackage this app. Just be sure to give me credit.
How to use Wingman
$ init - initializes a new blog in an existing directory
$ new <blog name> - creates a new directory and initilizes a blog in it. Uses the provided path.
$ build - creates the production build for your project (with all bundled assets) in a
$ dev - starts the development server. Currently just rebuilds the source build.json file dynamically but should include a production grade web server in the future.
The commands for Wingman are pretty narrow so far and the functionality is minmimal, but you can build a functioning blog using it at v0.0.0 which is pretty impressive. This entire site is build with it. More features will be added and all updates will be published here.