Skip to content

Commit 4fc500d

Browse files
committed
update 04-auto-render-deploy
1 parent ca341c0 commit 4fc500d

43 files changed

Lines changed: 4800 additions & 2685 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

07-cloud/03-docker/04-auto-render-deploy/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine AS base
1+
FROM node:22-alpine AS base
22
RUN mkdir -p /usr/app
33
WORKDIR /usr/app
44

@@ -17,4 +17,4 @@ COPY ./server/package-lock.json ./
1717
COPY ./server/index.js ./
1818
RUN npm ci --omit=dev
1919

20-
CMD node index.js
20+
CMD ["node", "index.js"]

07-cloud/03-docker/04-auto-render-deploy/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Update docker settings (Advanced settings):
4545

4646
![06-docker-settings](./readme-resources/06-docker-settings.png)
4747

48-
Clicks on `Create Web Service` button.
48+
Clicks on `Deploy Web Service` button.
4949

5050
After the successful deploy, open `https://<app-name>.onrender.com`.
5151

07-cloud/03-docker/04-auto-render-deploy/package-lock.json

Lines changed: 4249 additions & 2308 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,55 @@
11
{
2-
"name": "04-boilerplate-front",
2+
"name": "07-cloud-master-frontend-lemoncode",
33
"version": "1.0.0",
4-
"description": "Member project",
5-
"main": "index.js",
64
"type": "module",
75
"scripts": {
86
"start": "run-p -l type-check:watch start:dev",
97
"start:dev": "vite --port 8080",
10-
"build": "npm run type-check && npm run clean && npm run build:prod",
11-
"build:prod": "vite build",
8+
"prebuild": "npm run type-check && npm run clean",
9+
"build": "vite build",
1210
"type-check": "tsc --noEmit --preserveWatchOutput",
1311
"type-check:watch": "npm run type-check -- --watch",
1412
"clean": "rimraf dist",
1513
"test": "vitest run -c ./config/test/config.ts",
1614
"test:watch": "vitest run -c ./config/test/config.ts"
1715
},
16+
"imports": {
17+
"#*": "./src/*"
18+
},
1819
"author": "Lemoncode",
1920
"license": "MIT",
2021
"dependencies": {
21-
"@emotion/css": "^11.11.2",
22-
"@emotion/react": "^11.11.4",
23-
"@emotion/styled": "^11.11.0",
22+
"@emotion/css": "^11.13.5",
23+
"@emotion/react": "^11.14.0",
24+
"@emotion/styled": "^11.14.0",
2425
"@lemoncode/fonk": "^1.5.4",
2526
"@lemoncode/fonk-formik": "^4.0.1",
26-
"@mui/material": "^5.15.12",
27-
"axios": "^1.6.7",
28-
"formik": "^2.4.5",
29-
"react": "^18.2.0",
30-
"react-dom": "^18.2.0",
31-
"react-router-dom": "^6.22.2"
27+
"@mui/material": "^6.4.3",
28+
"@tanstack/react-router": "^1.102.1",
29+
"axios": "^1.7.9",
30+
"formik": "^2.4.6",
31+
"react": "^19.0.0",
32+
"react-dom": "^19.0.0"
3233
},
3334
"devDependencies": {
34-
"@emotion/babel-plugin": "^11.11.0",
35-
"@testing-library/dom": "^9.3.4",
36-
"@testing-library/jest-dom": "^6.4.2",
37-
"@testing-library/react": "^14.2.1",
38-
"@testing-library/user-event": "^14.5.2",
39-
"@types/jest": "^29.5.12",
40-
"@types/react": "^18.2.63",
41-
"@types/react-dom": "^18.2.19",
35+
"@emotion/babel-plugin": "^11.13.5",
36+
"@tanstack/router-devtools": "^1.102.1",
37+
"@tanstack/router-plugin": "^1.102.1",
38+
"@testing-library/dom": "^10.4.0",
39+
"@testing-library/jest-dom": "^6.6.3",
40+
"@testing-library/react": "^16.2.0",
41+
"@testing-library/user-event": "^14.6.1",
42+
"@types/jest": "^29.5.14",
43+
"@types/react": "^19.0.8",
44+
"@types/react-dom": "^19.0.3",
4245
"@types/react-router-dom": "^5.3.3",
43-
"@vitejs/plugin-react": "^4.2.1",
44-
"jsdom": "^24.0.0",
46+
"@vitejs/plugin-react": "^4.3.4",
47+
"jsdom": "^26.0.0",
4548
"npm-run-all": "^4.1.5",
46-
"rimraf": "^5.0.5",
47-
"ts-jest": "^29.1.2",
48-
"typescript": "^5.3.3",
49-
"vite": "^5.1.5",
50-
"vitest": "^1.3.1"
49+
"rimraf": "^6.0.1",
50+
"ts-jest": "^29.2.5",
51+
"typescript": "^5.7.3",
52+
"vite": "^6.1.0",
53+
"vitest": "^3.0.5"
5154
}
5255
}
-35.8 KB
Loading
-4.33 KB
Loading
21.8 KB
Loading
95.6 KB
Loading
111 KB
Loading

07-cloud/03-docker/04-auto-render-deploy/server/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ const app = express();
55
const staticFilesPath = path.resolve(__dirname, process.env.STATIC_FILES_PATH);
66
app.use('/', express.static(staticFilesPath));
77

8+
app.get('*', (req, res) => {
9+
res.sendFile(path.resolve(staticFilesPath, 'index.html'));
10+
});
11+
812
const PORT = process.env.PORT || 8081;
913
app.listen(PORT, () => {
1014
console.log(`App running on http://localhost:${PORT}`);

0 commit comments

Comments
 (0)