mirror of
https://github.com/frappe/books.git
synced 2024-11-12 16:36:27 +00:00
15 lines
441 B
JavaScript
15 lines
441 B
JavaScript
const server = require('frappejs/server');
|
|
const frappe = require('frappejs');
|
|
|
|
server.start({
|
|
backend: 'sqlite',
|
|
connectionParams: {dbPath: 'test.db'},
|
|
static: './',
|
|
models: require('./models')
|
|
}).then(() => {
|
|
// set server-side modules
|
|
frappe.models.Invoice.documentClass = require('./models/doctype/Invoice/InvoiceServer.js');
|
|
frappe.metaCache = {};
|
|
|
|
frappe.syncDoc(require('./fixtures/invoicePrint'));
|
|
}); |