2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +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'));
});