Last active
May 19, 2020 13:49
-
-
Save devig/5ec7f7fbf54db7c22d5e268e9800f8bd to your computer and use it in GitHub Desktop.
MYSQL adminer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require('express'); | |
| var app = express(); | |
| var mysql = require('mysql'); | |
| //var nodeadmin = require(__dirname + '/../middleware/index.js'); | |
| var nodeadmin = require('nodeadmin'); //https://github.com/nodeadmin/nodeadmin | |
| //app.use(nodeadmin(app)); | |
| app.use(nodeadmin(app, process.env.PORT || 4040)); | |
| app.use('/', function(req, res, next) { | |
| res.send('<a href="/nodeadmin">nodeadmin</a>'); | |
| }); | |
| app.listen(process.env.PORT || 4040); | |
| module.exports = app; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment