demo for bhagat

This commit is contained in:
Daniel
2021-02-02 16:19:42 +01:00
committed by Daniel Hutzel
parent b5031588ce
commit a037d92c97
15 changed files with 5887 additions and 0 deletions

11
demo/server.js Normal file
View File

@@ -0,0 +1,11 @@
const express = require('express')
const cds = require('@sap/cds')
cds.once('bootstrap',(app)=>{
const {dirname} = require('path')
// serving the vue.js app imported from @capire/bookshop
const vue_app = dirname (require.resolve('@capire/bookshop/app/vue/index.html'))
app.use ('/vue', express.static(vue_app))
})
module.exports = cds.server