An open API service indexing awesome lists of open source software.

https://github.com/masumkhan081/resume-backend


https://github.com/masumkhan081/resume-backend

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

npm init -y
npm install --save-dev typescript
nano tsconfig.json

tsconfig.json:
{
"compilerOptions": {
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
"moduleResolution": "node",
"sourceMap": true,
"outDir": "dist"
},
"lib": ["es2015"]
}

npm install --save express@4.17.1
npm install -save-dev @types/express@4.17.1

import express from 'express';
const app = express();
const port = 3000;

app.get('/', (req, res) => {
res.send('Hello World!');
});

app.listen(port, () => {
return console.log(`Express is listening at http://localhost:${port}`);
});

npx tsc

node dist/index.js

"start": "tsc && node dist/index.js",
"dev": "nodemon --exec ts-node index.ts",