2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +00:00
books/server/index.js

19 lines
340 B
JavaScript
Raw Normal View History

import models from '../models';
import server from 'frappejs/server';
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 {
2018-10-22 18:02:47 +00:00
start
};