Skip to content

Commit 2341044

Browse files
authored
Merge pull request #781 from Lemoncode/feature/fix-socketio-back
Edition XV - Fix Socket.io back for Node20+
2 parents f0b8aa1 + 7282e95 commit 2341044

20 files changed

Lines changed: 20 additions & 10659 deletions

File tree

06-rest-api/04-socket-io/00-boilerplate/back/package-lock.json

Lines changed: 0 additions & 2326 deletions
This file was deleted.

06-rest-api/04-socket-io/00-boilerplate/back/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
"scripts": {
88
"prestart": "sh ./create-dev-env.sh",
99
"start": "run-p -l type-check:watch start:dev",
10-
"start:dev": "nodemon --transpileOnly --esm src/index.ts",
10+
"start:dev": "nodemon --exec node --loader ts-node/esm src/index.ts",
1111
"type-check": "tsc --noEmit --preserveWatchOutput",
1212
"type-check:watch": "npm run type-check -- --watch"
1313
},
1414
"dependencies": {
1515
"dotenv": "^16.3.1",
16-
"express": "^4.18.2",
17-
"stripe": "^12.12.0"
16+
"express": "^4.18.2"
1817
},
1918
"devDependencies": {
2019
"@types/express": "^4.17.17",
Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,9 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Buy cool new product</title>
5-
<link rel="stylesheet" href="style.css" />
6-
<script src="https://polyfill.io/v3/polyfill.min.js?version=3.52.1&features=fetch"></script>
7-
<script src="https://js.stripe.com/v3/"></script>
4+
<title>Express Server</title>
85
</head>
96
<body>
10-
<section>
11-
<div class="product">
12-
<img
13-
src="https://i.imgur.com/EHyR2nP.png"
14-
alt="The cover of Stubborn Attachments"
15-
/>
16-
<div class="description">
17-
<h3>Stubborn Attachments</h3>
18-
<h5>$20.00</h5>
19-
</div>
20-
</div>
21-
<button id="checkout-button">Checkout</button>
22-
</section>
7+
<h1>Express Server</h1>
238
</body>
249
</html>

06-rest-api/04-socket-io/00-boilerplate/back/public/style.css

Lines changed: 0 additions & 80 deletions
This file was deleted.

06-rest-api/04-socket-io/00-boilerplate/back/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "ESNext",
4-
"module": "ESNext",
4+
"module": "NodeNext",
55
"moduleResolution": "NodeNext",
66
"skipLibCheck": true,
77
"isolatedModules": true,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Hello socket
22

3-
[🇪🇸 Versión Español](./README_es.md)
3+
[🇪🇸 Versión Español](./Readme_es.md)
44

55
English version not available yet... fork and translate? O:-)

0 commit comments

Comments
 (0)