Introducing vweb
In the previous chapter, we learned about the orm
and json
libraries. Now, we will use the vweb
library to build a microservice that performs Create, Read, Update, and Delete (CRUD) operations on a simple database table. The vweb
library is a built-in library that ships along with V. It is a simple yet powerful web server with built-in routing, parameter handling, and comes with a templating engine. At the time of writing, vweb
is an alpha-level software. Therefore, some of the features might not be complete. However, with vweb
in its current state, nothing is stopping us from building a microservice using the RESTful approach.
The vweb
library has the following features:
- It has a very fast performance, which is similar to that of C, on the web.
- It is easier to deploy an application built with
vweb
since it is just one binary file including all templates. There is no need to install dependencies. - The templates are precompiled, so all errors are visible...