2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/server.js

15 lines
441 B
JavaScript
Raw Normal View History

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({
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
});