2
0
mirror of https://github.com/frappe/books.git synced 2025-01-25 16:18:33 +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 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 {
2018-10-22 23:32:47 +05:30
start
};