2018-01-16 07:16:50 +00:00
|
|
|
const server = require('frappejs/server');
|
2018-02-20 17:11:16 +00:00
|
|
|
const frappe = require('frappejs');
|
2018-01-08 12:29:49 +00:00
|
|
|
|
|
|
|
server.start({
|
2018-01-15 11:54:54 +00:00
|
|
|
backend: 'sqlite',
|
2018-02-16 13:14:38 +00:00
|
|
|
connectionParams: {dbPath: 'test.db'},
|
2018-01-23 08:00:08 +00:00
|
|
|
static: './',
|
2018-02-16 13:14:38 +00:00
|
|
|
models: require('./models')
|
2018-02-20 17:11:16 +00:00
|
|
|
}).then(() => {
|
2018-03-05 16:45:40 +00:00
|
|
|
// set server-side modules
|
|
|
|
frappe.models.Invoice.documentClass = require('./models/doctype/Invoice/InvoiceServer.js');
|
|
|
|
frappe.metaCache = {};
|
|
|
|
|
2018-02-20 17:11:16 +00:00
|
|
|
frappe.syncDoc(require('./fixtures/invoicePrint'));
|
2018-01-08 12:29:49 +00:00
|
|
|
});
|