Replace static Hello World with KenJim Technologies React app

- Vite + React frontend: hero, services grid, contact form
- Express + nodemailer backend for contact form → kenji@kenjim.com
- Multi-stage Docker builds; nginx inside frontend proxies /api to backend
- SMTP config via .env (see .env.example)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 15:18:16 +00:00
parent bcb354d074
commit e802f03f02
25 changed files with 809 additions and 40 deletions

18
frontend/nginx.conf Normal file
View File

@@ -0,0 +1,18 @@
server {
listen 80;
root /usr/share/nginx/html;
index index.html;
# SPA routing — return index.html for all non-file routes
location / {
try_files $uri $uri/ /index.html;
}
# Proxy API calls to the backend container
location /api/ {
proxy_pass http://api:3001/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}