Skip to content

Commit d19c3a7

Browse files
committed
big bang
0 parents  commit d19c3a7

File tree

5 files changed

+2366
-0
lines changed

5 files changed

+2366
-0
lines changed

.gitignore

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Node modules
2+
node_modules/
3+
4+
# Logs
5+
logs/
6+
*.log
7+
npm-debug.log*
8+
yarn-debug.log*
9+
yarn-error.log*
10+
11+
# Environment variables
12+
.env
13+
14+
# TypeScript
15+
*.tsbuildinfo
16+
17+
# Build output
18+
dist/
19+
build/
20+
21+
# Dependency directories
22+
jspm_packages/
23+
24+
# IDEs and editors
25+
.vscode/
26+
.idea/
27+
28+
# Optional npm cache directory
29+
.npm/
30+
31+
# Optional eslint cache
32+
.eslintcache
33+
34+
# Optional REPL history
35+
.node_repl_history
36+
37+
# Output of 'npm pack'
38+
*.tgz
39+
40+
# Yarn Integrity file
41+
.yarn-integrity
42+
43+
# dotenv environment variables file
44+
.env.local
45+
.env.development.local
46+
.env.test.local
47+
.env.production.local
48+
49+
# Parcel-bundler cache (https://parceljs.org/)
50+
.cache
51+
52+
# Next.js build output
53+
.next
54+
55+
# Nuxt.js build output
56+
.nuxt
57+
58+
# Gatsby files
59+
.cache/
60+
public/
61+
62+
# vuepress build output
63+
.vuepress/dist
64+
65+
# Serverless directories
66+
.serverless/
67+
68+
# FuseBox cache
69+
.fusebox/
70+
71+
# DynamoDB Local files
72+
.dynamodb/
73+
74+
# TernJS port file
75+
.tern-port
76+
77+
# Mac system files
78+
.DS_Store
79+
80+
# Windows system files
81+
Thumbs.db

index.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import express, { Express, Request, Response, Application } from "express";
2+
import dotenv from "dotenv";
3+
4+
//For env File
5+
dotenv.config();
6+
7+
const app: Application = express();
8+
const port = process.env.PORT || 8000;
9+
10+
/* app.get("/", (req: Request, res: Response) => {
11+
res.send("Welcome to Express & TypeScript Server");
12+
}); */
13+
14+
app.listen(port, () => {
15+
console.log(`Server is Fire at https://localhost:${port}`);
16+
});

0 commit comments

Comments
 (0)