https://github.com/masumkhan081/resume-backend
https://github.com/masumkhan081/resume-backend
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/masumkhan081/resume-backend
- Owner: masumkhan081
- Created: 2023-10-05T09:02:57.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-02T21:08:12.000Z (10 months ago)
- Last Synced: 2025-01-12T18:52:03.086Z (9 months ago)
- Language: TypeScript
- Homepage: https://resume-backend-zeta.vercel.app
- Size: 212 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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",