Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = {
- name: 'ExpressApp', service: __,
- dependencies: ['require(express)', 'ApplicationRunner', 'ChazLogger']
- };
- function __(express, ApplicationRunner, Logger) {
- class ExpressApp extends ApplicationRunner {
- run() {
- const ExpressApp = express();
- const port = 3000;
- ExpressApp.get('/', (req, res) => res.send('Hello World!'));
- ExpressApp.listen(port, () => Logger.warn(`Example app listening on port ${port}!`));
- }
- }
- return ExpressApp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement