mirror of
https://github.com/sasjs/server.git
synced 2026-01-07 22:50:05 +00:00
chore(*): initial commit
This commit is contained in:
17
src/index.ts
Normal file
17
src/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
// Express App Setup
|
||||
import express from 'express'
|
||||
import bodyParser from 'body-parser'
|
||||
|
||||
const app = express()
|
||||
|
||||
app.use(bodyParser.json())
|
||||
|
||||
// Express route handlers
|
||||
app.get('/', (req, res) => {
|
||||
res.send('Hey from @sasjs/server API!')
|
||||
})
|
||||
|
||||
const port = 5000
|
||||
app.listen(port, () => {
|
||||
console.log(`⚡️[server]: Server is running at https://localhost:${port}`)
|
||||
})
|
||||
Reference in New Issue
Block a user