2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 15:50:56 +00:00
books/frappe/app.js

12 lines
240 B
JavaScript
Raw Normal View History

2018-01-02 10:10:32 +00:00
const app = require('express')();
2018-01-01 12:17:51 +00:00
const frappe = require('frappe-core');
2018-01-03 06:49:59 +00:00
async function start() {
await frappe.init();
await frappe.init_db('sqlite', {db_path: 'test.db'});
await frappe.init_app(app);
await frappe.start();
}
2018-01-01 12:17:51 +00:00
2018-01-03 06:49:59 +00:00
start();