@@ -0,0 +1,2 @@ | |||||
node_modules/* | |||||
dist/* |
@@ -0,0 +1,27 @@ | |||||
{ | |||||
"name": "job-portal", | |||||
"version": "1.0.0", | |||||
"description": "job portal backend node app", | |||||
"main": "dist/index.js", | |||||
"scripts": { | |||||
"prebuild": "tslint -c tslint.json -p tsconfig.json --fix", | |||||
"build": "tsc", | |||||
"prestart": "npm run build", | |||||
"start": "node .", | |||||
"watch": "nodemon src/index.ts & tslint -c tslint.json -p tsconfig.json --fix & npm run build & node .", | |||||
"test": "echo \"Error: no test specified\" && exit 1" | |||||
}, | |||||
"author": "", | |||||
"license": "ISC", | |||||
"dependencies": { | |||||
"axios": "^0.21.4", | |||||
"express": "^4.17.1", | |||||
"nodemon": "^2.0.12" | |||||
}, | |||||
"devDependencies": { | |||||
"@types/express": "^4.17.13", | |||||
"@types/node": "^16.9.4", | |||||
"tslint": "^6.1.3", | |||||
"typescript": "^4.4.3" | |||||
} | |||||
} |
@@ -0,0 +1,15 @@ | |||||
import express from 'express'; | |||||
const app = express(); | |||||
const port = 3000; | |||||
const key = '315740fef6af918da31cc00800d6b6a5'; | |||||
app.get('/', (req, res) => { | |||||
res.send("Run it!"); | |||||
}); | |||||
app.listen(port, () => { | |||||
console.log('Port running at ' + port); | |||||
}); |
@@ -0,0 +1,20 @@ | |||||
{ | |||||
"compilerOptions": { | |||||
"module": "commonjs", | |||||
"esModuleInterop": true, | |||||
"target": "es6", | |||||
"noImplicitAny": true, | |||||
"moduleResolution": "node", | |||||
"sourceMap": true, | |||||
"outDir": "dist", | |||||
"baseUrl": ".", | |||||
"paths": { | |||||
"*": [ | |||||
"node_modules/*" | |||||
] | |||||
} | |||||
}, | |||||
"include": [ | |||||
"src/**/*" | |||||
] | |||||
} |
@@ -0,0 +1,12 @@ | |||||
{ | |||||
"defaultSeverity": "error", | |||||
"extends": [ | |||||
"tslint:recommended" | |||||
], | |||||
"jsRules": {}, | |||||
"rules": { | |||||
"no-console": false, | |||||
"trailing-comma": [ false ] | |||||
}, | |||||
"rulesDirectory": [] | |||||
} |