1
0
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:
Yury Shkoda
2021-06-09 09:03:54 +03:00
commit c3b7a84322
6 changed files with 1591 additions and 0 deletions

17
src/index.ts Normal file
View 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}`)
})