2
0
mirror of https://github.com/frappe/books.git synced 2025-01-26 00:28:25 +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 17:44:27 +05:30
2018-07-29 17:20:10 +05:30
async function start() {
await server.start({
backend: 'sqlite',
connectionParams: { dbPath: 'test.db', enableCORS: true },
models,
});
2018-07-29 17:20:10 +05:30
await postStart();
2018-03-26 17:44:27 +05:30
}
2018-07-29 17:20:10 +05:30
start();
export default {
start,
};