mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
1a8a23d2a2
- refactor Common Js imports to ES6
19 lines
340 B
JavaScript
19 lines
340 B
JavaScript
import models from '../models';
|
|
import server from 'frappejs/server';
|
|
import postStart from './postStart';
|
|
|
|
async function start() {
|
|
await server.start({
|
|
backend: 'sqlite',
|
|
connectionParams: { dbPath: 'test.db', enableCORS: true },
|
|
models
|
|
})
|
|
|
|
await postStart();
|
|
}
|
|
|
|
start();
|
|
|
|
export default {
|
|
start
|
|
}; |