2
0
mirror of https://github.com/frappe/books.git synced 2025-01-23 23:28:24 +00:00
books/server/index.js

19 lines
342 B
JavaScript
Raw Normal View History

2018-10-22 23:32:47 +05:30
2018-03-26 17:44:27 +05:30
const server = require('frappejs/server');
2018-10-22 23:32:47 +05:30
const postStart = require('./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: require('../models')
})
await postStart();
2018-03-26 17:44:27 +05:30
}
2018-07-29 17:20:10 +05:30
start();
module.exports = {
2018-10-22 23:32:47 +05:30
start
2018-07-29 17:20:10 +05:30
}