2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/server/index.js
2018-10-22 23:32:47 +05:30

19 lines
342 B
JavaScript

const server = require('frappejs/server');
const postStart = require('./postStart');
async function start() {
await server.start({
backend: 'sqlite',
connectionParams: { dbPath: 'test.db', enableCORS: true },
models: require('../models')
})
await postStart();
}
start();
module.exports = {
start
}