Skip to content

Commit d1a7609

Browse files
committed
update
1 parent 2d66fea commit d1a7609

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

session 6/chapters/2. Init server.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,4 @@ npm i --save-dev @types/cors @types/express @types/express-fileupload
1818

1919
# Folder Structure
2020

21-
# Initialize server
22-
23-
create two files in src directory
24-
25-
1. index.ts
26-
2. app.ts
27-
28-
`index.ts` will import application from `app.ts` and start the server.
29-
30-
add following to `index.ts`
31-
32-
```ts
33-
import * as dotenv from 'dotenv';
34-
dotenv.config();
35-
36-
import Application from './app';
37-
38-
(async () => {
39-
const app = Application.instance();
40-
await app.start();
41-
})();
42-
```
21+
You can find boilerplate code for this tutorial [here](https://github.com/Gambitier/typescript-node-express-boilerplate)

0 commit comments

Comments
 (0)