bash $ npm init bash $ npm install tehuti script const Tehuti = require('tehuti'); const app = new Tehuti(); app.set('port', 3000); app.get('/', (req, res) => { res.send('Hello, Tehuti!'); }); app.listen(app.get('port'), () => { console.log(`Server is running on port ${app.get('port')}`); }); bash $ node app.js


上一篇:
下一篇:
切换中文