Grab this boilerplate code and quickly start your expressjs project. For hackathons and personal projects.
1const express = require('express'); 2const app = express(); 3const PORT = 3000; 4 5app.get('/', (req, res) => { 6 res.send('Hello World!'); 7}); 8 9app.listen(PORT, () => { 10 console.log(`Server listening on port ${port}`); 11});