2
0
mirror of https://github.com/frappe/books.git synced 2024-12-25 04:06:04 +00:00
books/server/index.js

20 lines
322 B
JavaScript
Raw Normal View History

import server from 'frappe/server';
import models from '../models';
import postStart from './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,
});
2018-07-29 11:50:10 +00:00
await postStart();
2018-03-26 12:14:27 +00:00
}
2018-07-29 11:50:10 +00:00
start();
export default {
start,
};