mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
Setup ESLint + Prettier, Re-setup Express
This commit is contained in:
1 parent
f32fcd2508
commit
ad4dc6d576
17 files changed
+1722
-613
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import express from 'express'
|
||||
|
||||
const app = express()
|
||||
const port = 3000
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hello World!')
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Server listening at http://localhost:${port}`)
|
||||
})
|
||||
Reference in new issue
Block a user