Compare commits

..
Author SHA1 Message Date
Joders ea00cd0565 Merge branch 'main' of https://git.bennyshouse.net/Joders/Jody-Portfolio
Deploy Jody's App / build-and-deploy (push) Successful in 36s
merge after public creation back to prod main
2026-07-08 22:24:27 -05:00
Joders 659d4d9aa1 feat(project): added color theme project, added in dev project flag); 2026-04-23 00:25:07 -05:00
Joders fe66276a83 feat(project): added color theme project, added in dev project flag);
Deploy Jody's App / build-and-deploy (push) Successful in 36s
2026-04-23 00:25:07 -05:00
Joders da8a300d3e added env for gittea 2026-02-18 23:14:51 -06:00
Joders d69ff1a997 added env for gittea
Deploy Jody's App / build-and-deploy (push) Successful in 33s
2026-02-18 23:14:51 -06:00
Joders 082eef4f1b chore: add to README and add license 2026-02-18 23:09:06 -06:00
Joders 54a0dc329b chore: add to README and add license 2026-02-18 23:09:06 -06:00
Joders 66a6de631e chore: update README and add license 2026-02-18 23:07:34 -06:00
Jody Holt 47cf8bbb03 chore: Delete useless files 2026-02-18 23:06:30 -06:00
Jody Holt d9f017d448 chore: Delete useless files 2026-02-18 23:06:30 -06:00
Joders 5b6eb16662 Initial clean commit 2026-02-18 23:03:52 -06:00
17 changed files with 176 additions and 37 deletions
+2
View File
@@ -0,0 +1,2 @@
VITE_CONTACT_API_URL=/api/contact
VITE_TURNSTILE_SITE_KEY=0x4AAAAAACfQya1R13nGeuOy
+16 -3
View File
@@ -7,6 +7,8 @@ on:
jobs: jobs:
build-and-deploy: build-and-deploy:
runs-on: vps-host runs-on: vps-host
env:
CONTACT_HEALTH_URL: https://jodyholt.com/api/health
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@@ -44,8 +46,19 @@ jobs:
- name: Restart Contact API - name: Restart Contact API
run: | run: |
systemctl restart jody-contact-api set -euo pipefail
systemctl is-active --quiet jody-contact-api SYSTEMCTL_BIN="/usr/bin/systemctl"
if [ ! -x "$SYSTEMCTL_BIN" ]; then
SYSTEMCTL_BIN="/bin/systemctl"
fi
sudo -n "$SYSTEMCTL_BIN" restart jody-contact-api
sudo -n "$SYSTEMCTL_BIN" is-active --quiet jody-contact-api
echo "jody-contact-api service is active"
- name: Health Check Contact API - name: Health Check Contact API
run: curl --fail --silent http://127.0.0.1:8787/health run: |
curl --fail --show-error --silent \
--retry 8 \
--retry-delay 2 \
--retry-all-errors \
"$CONTACT_HEALTH_URL"
+28 -21
View File
@@ -1,35 +1,42 @@
# Dependencies
node_modules/ node_modules/
contact-api/node_modules/
# Build artifacts
dist/
build/
contact-api/dist/
coverage/
*.tsbuildinfo
.vite/
# Logs
*.log
npm-debug.log* npm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
pnpm-debug.log* pnpm-debug.log*
# Build output # Environment files (keep examples)
dist/
build/
contact-api/dist/
# Vite cache
.vite/
# VSCode settings # Archives and local release bundles
*.tgz
*.tar
*.tar.gz
# Tool caches
.eslintcache
.nyc_output/
# Editor / IDE
.vscode/ .vscode/
.idea/
# Log files *.swp
*.log *.swo
*~
# Environment variables
.env
.env.*.local
contact-api/.env
# OS generated # OS generated
.DS_Store .DS_Store
Thumbs.db Thumbs.db
# Optional: lock files (if you use one package manager)
# Uncomment the ones you're not using
# yarn.lock
# package-lock.json
# pnpm-lock.yamlw
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Jody Holt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+6 -1
View File
@@ -23,7 +23,7 @@ This site demonstrates my personality, skills, and presents the tone I provide t
```bash ```bash
src/ src/
|-assets/ # Images |-assets/ # Images
|-components/ #Reusable UI components |-components/ #Reusable UI components
|-hooks/ #Custom React Hooks |-hooks/ #Custom React Hooks
|-styles/ #Tailwind + custom theme CSS |-styles/ #Tailwind + custom theme CSS
@@ -84,6 +84,11 @@ Create `contact-api/.env` from `contact-api/.env.example` and set your real Turn
- systemd unit template: `ops/jody-contact-api.service` - systemd unit template: `ops/jody-contact-api.service`
- Nginx reverse proxy snippet: `ops/nginx-contact-api.conf` - Nginx reverse proxy snippet: `ops/nginx-contact-api.conf`
## License
This project is licensed under the MIT License.
See `LICENSE` for full text.
## Author ## Author
### Jody Holt ### Jody Holt
Binary file not shown.
+20
View File
@@ -0,0 +1,20 @@
NODE_ENV=production
PORT=8787
CONTACT_ALLOWED_ORIGIN=https://jodyholt.com,https://www.jodyholt.com
TURNSTILE_EXPECTED_HOSTNAME=jodyholt.com,www.jodyholt.com
TURNSTILE_SECRET_KEY=0x4AAAAAACfQyRwRzwsEMIfVtCSkjz7__Yc
TURNSTILE_EXPECTED_ACTION=contact_form
SMTP_HOST=mail.jodyholt.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_REQUIRE_TLS=true
SMTP_USER=portfolio-smtp
SMTP_PASS=portfolio124521!
MAIL_FROM_NAME=Portfolio Contact
MAIL_FROM_ADDRESS=contact@jodyholt.com
MAIL_TO_ADDRESS=you@jodyholt.com
MAIL_SUBJECT_PREFIX=[Portfolio Contact]
RATE_LIMIT_WINDOW_MS=600000
RATE_LIMIT_MAX=5
HONEYPOT_FIELD=website
MIN_SUBMIT_TIME_MS=3000
+3 -1
View File
@@ -10,7 +10,9 @@ const boolFromEnv = z
const envSchema = z.object({ const envSchema = z.object({
NODE_ENV: z.enum(["development", "test", "production"]).default("development"), NODE_ENV: z.enum(["development", "test", "production"]).default("development"),
PORT: z.coerce.number().int().positive().default(8787), PORT: z.coerce.number().int().positive().default(8787),
CONTACT_ALLOWED_ORIGIN: z.string().url(), // Comma-separated list of allowed browser origins, e.g.
// https://jodyholt.com,https://www.jodyholt.com
CONTACT_ALLOWED_ORIGIN: z.string().min(1),
TURNSTILE_SECRET_KEY: z.string().min(1), TURNSTILE_SECRET_KEY: z.string().min(1),
TURNSTILE_EXPECTED_HOSTNAME: z.string().min(1), TURNSTILE_EXPECTED_HOSTNAME: z.string().min(1),
TURNSTILE_EXPECTED_ACTION: z.string().min(1).default("contact_form"), TURNSTILE_EXPECTED_ACTION: z.string().min(1).default("contact_form"),
+26 -1
View File
@@ -16,6 +16,25 @@ type ApiErrorResponse = {
const app = express(); const app = express();
app.set("trust proxy", 1); app.set("trust proxy", 1);
const normalizeOrigin = (value: string): string => {
const cleaned = value
.trim()
.replace(/^['"]|['"]$/g, "")
.replace(/\/+$/g, "");
// Some clients can emit explicit default ports. URL.origin normalizes them.
try {
return new URL(cleaned).origin.toLowerCase();
} catch {
return cleaned.toLowerCase();
}
};
const allowedOrigins = config.CONTACT_ALLOWED_ORIGIN
.split(",")
.map(normalizeOrigin)
.filter((value, index, all) => value.length > 0 && all.indexOf(value) === index);
app.use( app.use(
pinoHttp({ pinoHttp({
level: config.NODE_ENV === "production" ? "info" : "debug", level: config.NODE_ENV === "production" ? "info" : "debug",
@@ -30,7 +49,13 @@ app.use(helmet());
app.use( app.use(
cors({ cors({
origin(origin, callback) { origin(origin, callback) {
if (!origin || origin === config.CONTACT_ALLOWED_ORIGIN) { if (!origin) {
callback(null, true);
return;
}
const normalizedOrigin = normalizeOrigin(origin);
if (allowedOrigins.includes(normalizedOrigin)) {
callback(null, true); callback(null, true);
return; return;
} }
+13 -1
View File
@@ -7,6 +7,18 @@ type TurnstileVerifyResponse = {
"error-codes"?: string[]; "error-codes"?: string[];
}; };
const normalizeHostname = (value: string): string =>
value
.trim()
.replace(/^['"]|['"]$/g, "")
.replace(/\.+$/g, "")
.toLowerCase();
const expectedHostnames = config.TURNSTILE_EXPECTED_HOSTNAME
.split(",")
.map(normalizeHostname)
.filter((value, index, all) => value.length > 0 && all.indexOf(value) === index);
export async function verifyTurnstileToken( export async function verifyTurnstileToken(
token: string, token: string,
remoteIp?: string, remoteIp?: string,
@@ -36,7 +48,7 @@ export async function verifyTurnstileToken(
return { ok: false, reason: codes }; return { ok: false, reason: codes };
} }
if (result.hostname !== config.TURNSTILE_EXPECTED_HOSTNAME) { if (!result.hostname || !expectedHostnames.includes(normalizeHostname(result.hostname))) {
return { ok: false, reason: "hostname_mismatch" }; return { ok: false, reason: "hostname_mismatch" };
} }
Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.
Binary file not shown.
+1 -3
View File
@@ -297,9 +297,7 @@ export function Contact() {
<div className="space-y-2"> <div className="space-y-2">
<div ref={turnstileContainerRef} className="min-h-[66px]" /> <div ref={turnstileContainerRef} className="min-h-[66px]" />
{!TURNSTILE_SITE_KEY && (
<p className="text-xs text-contrast">Set `VITE_TURNSTILE_SITE_KEY` to enable submissions.</p>
)}
{TURNSTILE_SITE_KEY && !turnstileReady && ( {TURNSTILE_SITE_KEY && !turnstileReady && (
<p className="text-xs text-text/65">Loading human verification...</p> <p className="text-xs text-text/65">Loading human verification...</p>
)} )}
+35 -2
View File
@@ -7,7 +7,10 @@ import skymoneyvideo from "../assets/video/Skymoney-video.mp4";
import skymoneyvideoMobile from "../assets/video/Skymoney-mobile-video.mp4"; import skymoneyvideoMobile from "../assets/video/Skymoney-mobile-video.mp4";
import millervideo from "../assets/video/500nmain-video.mp4"; import millervideo from "../assets/video/500nmain-video.mp4";
import millervideoMobile from "../assets/video/500nmain-mobile-video.mp4"; import millervideoMobile from "../assets/video/500nmain-mobile-video.mp4";
import themeTesterCover from "../assets/img/theme_tester_img.png";
import themeTesterCoverMobile from "../assets/img/theme_tester_mobile_img.png";
import themeTesterVideo from "../assets/video/themeTesterVideo.mp4";
import themeTesterVideoMobile from "../assets/video/themeTesterVideoMobile.mp4";
type Project = { type Project = {
id: string; id: string;
title: string; title: string;
@@ -19,6 +22,7 @@ type Project = {
techStack: string[]; techStack: string[];
liveUrl?: string; liveUrl?: string;
beta?: boolean; beta?: boolean;
inDev?: boolean;
note?: string; note?: string;
comingSoon?: boolean; comingSoon?: boolean;
}; };
@@ -36,6 +40,7 @@ const projects: Project[] = [
techStack: ["React", "TypeScript", "Node.js", "PostgreSQL"], techStack: ["React", "TypeScript", "Node.js", "PostgreSQL"],
liveUrl: "https://skymoneybudget.com", liveUrl: "https://skymoneybudget.com",
beta: true, beta: true,
inDev: true,
note: "Contact Jody for beta access.", note: "Contact Jody for beta access.",
}, },
{ {
@@ -50,6 +55,22 @@ const projects: Project[] = [
techStack: ["HTML", "CSS", "JQuery"], techStack: ["HTML", "CSS", "JQuery"],
liveUrl: "https://500nmain806.com", liveUrl: "https://500nmain806.com",
}, },
{
id: "color-theme-tester",
title: "Color Theme UI Tester",
description:
"A UI Color Theme Tester that visualizes color schemes, fonts, and images on a mock UI.",
coverImage: themeTesterCover,
coverImageMobile: themeTesterCoverMobile,
video: themeTesterVideo,
videoMobile: themeTesterVideoMobile,
techStack: ["React", "Tailwind", "Typescript"],
liveUrl: "https://github.com/Ricearoni1245/Color-Theme-UI-Tester",
beta: false,
inDev: true,
note: "Stay tuned for progress!"
}
]; ];
function VideoModal({ function VideoModal({
@@ -163,8 +184,15 @@ function ProjectCard({
<div className="absolute top-3 right-3 px-3 py-1 rounded-full bg-primary text-white text-xs font-bold uppercase tracking-wider"> <div className="absolute top-3 right-3 px-3 py-1 rounded-full bg-primary text-white text-xs font-bold uppercase tracking-wider">
Beta Beta
</div> </div>
)} )}
</div> {project.inDev && (
<div className="absolute top-3 left-3 px-3 py-1 rounded-full bg-tertiary text-white text-xs font-bold uppercase tracking-wider">
In Progress
</div>
)
}
</div>
{/* Cover Image - Mobile */} {/* Cover Image - Mobile */}
<div className="relative aspect-[9/16] overflow-hidden md:hidden mx-4 my-4 rounded-xl"> <div className="relative aspect-[9/16] overflow-hidden md:hidden mx-4 my-4 rounded-xl">
@@ -197,6 +225,11 @@ function ProjectCard({
Beta Beta
</div> </div>
)} )}
{project.inDev && (
<div className="absolute top-3 left-3 px-3 py-1 rounded-full bg-tertiary text-white text-xs font-bold uppercase tracking-wider">
In Progress
</div>
)}
</div> </div>
{/* Content */} {/* Content */}
+5 -4
View File
@@ -24,10 +24,11 @@ export const resumeData: ResumeData = {
summary: summary:
"Detail-oriented software developer with experience building full-stack applications using React, TypeScript, SQL, Express, and Docker. Skilled in responsive UI, modular API design, and writing scalable code. Strong communicator known for learning new technologies quickly and solving problems efficiently.", "Detail-oriented software developer with experience building full-stack applications using React, TypeScript, SQL, Express, and Docker. Skilled in responsive UI, modular API design, and writing scalable code. Strong communicator known for learning new technologies quickly and solving problems efficiently.",
skills: [ skills: [
{ category: "Front End", items: ["React", "TypeScript", "JavaScript", "Responsive Design", "Component Architecture", "Vite"] }, { category: "Languages", items: ["TypeScript", "JavaScript", "Python", "C#"]},
{ category: "Back End", items: ["Node.js", "Express", "REST APIs", "Authentication", "Input Validation", "JWT"] }, { category: "Front End", items: ["React", "CSS(Flexbox/Grid", "Tailwind", "Responsive Design", "Component Architecture", "Vite", "Tailwind"] },
{ category: "Database", items: ["SQL", "Prisma", "CRUD Operations", "Query Optimization", "Database Schema Design", "Data Modeling"] }, { category: "Back End", items: ["Node.js", "Express", "Fastify", "REST APIs", "Supertest", "Authentication", "Input Validation", "JWT", "Error Handling", "ASP.NET Core", "Razor Pages", "Background Jobs", "NodeMailer"] },
{ category: "Tools", items: ["Git/GitHub", "Docker", "Docker Compose", "Postman"] }, { category: "Data", items: ["SQL", "Prisma", "CRUD Operations", "Query Optimization", "Database Schema Design", "Data Modeling", "Data Sanitization", "Configuration"] },
{ category: "Tools", items: ["Git/GitHub", "Docker", "Docker Compose", "Postman", "NGINX", "GitHub Actions"] },
], ],
certifications: [ certifications: [
"Meta Front-End Developer Certificate (Coursera)", "Meta Front-End Developer Certificate (Coursera)",