2
0
mirror of https://github.com/frappe/books.git synced 2024-09-20 11:29:00 +00:00
books/server.js
2018-02-20 22:41:16 +05:30

11 lines
286 B
JavaScript

const server = require('frappejs/server');
const frappe = require('frappejs');
server.start({
backend: 'sqlite',
connectionParams: {dbPath: 'test.db'},
static: './',
models: require('./models')
}).then(() => {
frappe.syncDoc(require('./fixtures/invoicePrint'));
});