2
0
mirror of https://github.com/frappe/books.git synced 2024-12-24 11:55:46 +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
}