2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/server/index.js

19 lines
342 B
JavaScript
Raw Normal View History

2018-10-22 18:02:47 +00:00
2018-03-26 12:14:27 +00:00
const server = require('frappejs/server');
2018-10-22 18:02:47 +00:00
const postStart = require('./postStart');
2018-03-26 12:14:27 +00:00
2018-07-29 11:50:10 +00:00
async function start() {
await server.start({
backend: 'sqlite',
connectionParams: { dbPath: 'test.db', enableCORS: true },
models: require('../models')
})
await postStart();
2018-03-26 12:14:27 +00:00
}
2018-07-29 11:50:10 +00:00
start();
module.exports = {
2018-10-22 18:02:47 +00:00
start
2018-07-29 11:50:10 +00:00
}