Answers for "framework7 node js"

0

framework7 node js

var express = require('express');// express.js 
    var app = express();
    var path = require('path');


   app.use('/app', express.static(__dirname + '/app')); //Run Framework7 app
   app.get('/', function (req, res) {

        res.sendFile(path.join(__dirname + '/app/index.html')); 
  
    });

    var routes = require('./scripts/routes');  //RESTful APIs
    routes(app); 

    app.listen(8080);

    console.log('-> Port : 8080');
Posted by: Guest on June-24-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language