Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Latest commit

 

History

History
20 lines (14 loc) · 502 Bytes

index.md

File metadata and controls

20 lines (14 loc) · 502 Bytes

Server

The framework comes bundles with an express.js web server with pre-built backends, REST API and ORM.

Example

const server = require('frappejs/frappe/server');

server.start({
	backend: 'sqllite',
	connection_params: {db_path: 'test.db'},
	static: './',
	port: 8000
});

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.