showing results for - "framework7 node js"
Giulia
12 Sep 2019
1    var express = require('express');// express.js 
2    var app = express();
3    var path = require('path');
4
5
6   app.use('/app', express.static(__dirname + '/app')); //Run Framework7 app
7   app.get('/', function (req, res) {
8
9        res.sendFile(path.join(__dirname + '/app/index.html')); 
10  
11    });
12
13    var routes = require('./scripts/routes');  //RESTful APIs
14    routes(app); 
15
16    app.listen(8080);
17
18    console.log('-> Port : 8080');
queries leading to this page
framework7 node jsframework7 node js