2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00
books/frappe/docs/server.md
Rushabh Mehta 0fa2c70133 docs
2018-01-10 18:19:52 +05:30

505 B

Server

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

Example

const server = require('frappe-core/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.