mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
19 lines
342 B
JavaScript
19 lines
342 B
JavaScript
|
|
const server = require('frappejs/server');
|
|
const postStart = require('./postStart');
|
|
|
|
async function start() {
|
|
await server.start({
|
|
backend: 'sqlite',
|
|
connectionParams: { dbPath: 'test.db', enableCORS: true },
|
|
models: require('../models')
|
|
})
|
|
|
|
await postStart();
|
|
}
|
|
|
|
start();
|
|
|
|
module.exports = {
|
|
start
|
|
} |