mirror of https://github.com/TZGyn/shortener
Init express backend
parent
ace8f751d5
commit
7853c3e266
@ -0,0 +1,24 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
dist
|
||||
dist-ssr
|
||||
*.local
|
||||
|
||||
# Editor directories and files
|
||||
.vscode/*
|
||||
!.vscode/extensions.json
|
||||
.idea
|
||||
.DS_Store
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
||||
@ -0,0 +1,15 @@
|
||||
---
|
||||
printWidth: 80
|
||||
tabWidth: 4
|
||||
useTabs: true
|
||||
semi: false
|
||||
singleQuote: true
|
||||
quoteProps: consistent
|
||||
jsxSingleQuote: true
|
||||
trailingComma: es5
|
||||
bracketSpacing: true
|
||||
bracketSameLine: true
|
||||
arrowParens: always
|
||||
htmlWhitespaceSensitivity: strict
|
||||
vueIndentScriptAndStyle: false
|
||||
singleAttributePerLine: true
|
||||
Binary file not shown.
@ -0,0 +1 @@
|
||||
{ "dependencies": { "@types/express": "^4.17.17", "express": "^4.18.2" } }
|
||||
@ -0,0 +1,12 @@
|
||||
import express from 'express'
|
||||
|
||||
const app = express()
|
||||
const port = 1234
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.json({ message: 'Hello', data: 'World' })
|
||||
})
|
||||
|
||||
app.listen(port, () => {
|
||||
console.log(`Listening on port ${port}...`)
|
||||
})
|
||||
Loading…
Reference in New Issue