The framework comes bundles with an
express.js web server with pre-built backends, REST API and ORM.
const server = require('frappejs/frappe/server');
By starting a server, Frappe will automatically handle REST calls for all the declared models.
Database migration (syncing the tables based on models) is also done at the time of server start.