Internalv1.0 — Dec 2026

Website Architecture & Build Documentation

Complete technical reference for the ETECHNOSOFT INC website — stack, database schema, API endpoints, authentication, deployment, and design system.

etechnosoft.com

ETECHNOSOFT INC's website is a full-stack web application serving two purposes: a public marketing site for IT services and staffing, and an internal employee portal for timesheets, status reports, documents, and ID cards.

Built on the GoDaddy Airo v8 template — a Vite + React 19 + Express SSR stack with MySQL, deployed on GoDaddy's Airo hosting platform at etechnosoft.com.

Domain
etechnosoft.com
Platform
GoDaddy Airo
Runtime
Node.js / Alpine
Database
MySQL 8
Published
Dec 2026

Frontend

LayerTechnologyVersion
FrameworkReact19
LanguageTypeScript~5.x
Build ToolVite~6.x
RoutingReact Routerv8 (data router)
StylingTailwind CSSv3
UI Componentsshadcn/ui (Radix UI)40+ components
AnimationMotion (Framer Motion)~12.x
FormsReact Hook Form + Zodv7 + v4.6.7
SEO@dr.pogodin/react-helmet~3.1.1

Backend

LayerTechnologyNotes
ServerExpress~5.x, SSR + API routes
ORMDrizzle ORMMySQL adapter
DatabaseMySQL 8Platform-managed
AuthBetterAuthDrizzle adapter, scrypt
File UploadsbusboyMultipart streaming
PDF Generationhtml-pdf-nodeID cards, reports
EmailAiro Email GatewayNo SMTP config needed
src/
├── components/
│   ├── ui/                    # shadcn/ui library (40+ components)
│   ├── ContactModal.tsx       # Shared contact inquiry modal
│   └── SplashScreen.tsx       # Animated session splash screen
├── content/pages/home.json    # Inline-editable homepage content
├── layouts/
│   ├── RootLayout.tsx         # Wraps all public pages
│   └── parts/
│       ├── Header.tsx         # Sticky nav (desktop + mobile)
│       └── Footer.tsx         # Footer with contact modal
├── pages/
│   ├── index.tsx              # Homepage
│   ├── it-services.tsx        # IT Services
│   ├── staffing.tsx           # Staffing & Consulting
│   ├── careers.tsx            # Careers / job listings
│   ├── contact.tsx            # Contact page
│   ├── login.tsx              # Employee login
│   ├── portal.tsx             # Employee portal
│   ├── admin.tsx              # Admin panel
│   └── docs.tsx               # This page
├── server/
│   ├── entry.ts               # Express server entry
│   ├── db/
│   │   ├── client.ts          # Drizzle MySQL connection
│   │   └── schema.ts          # All table definitions
│   └── api/                   # API handler files
│       ├── admin/             # Admin endpoints
│       ├── auth/              # BetterAuth passthrough
│       ├── careers/           # Job applications
│       ├── contact/           # Contact forms
│       └── portal/            # Employee portal
├── styles/globals.css         # Tailwind + CSS variables
├── routes.tsx                 # Route definitions
└── entry-server.tsx           # SSR render entry

/shared-storage/public/assets/ # Persistent file storage
└── uploads/
    ├── photos/                # Employee profile photos
    ├── timesheets/            # Submitted PDFs
    ├── documents/             # HR documents
    └── applications/         # Job application resumes

Server-Side Rendering (SSR) Flow

1
Browser sends request to etechnosoft.com
2
Express server receives request
Static assets → dist/client/ | API routes → /api/* handlers | Everything else → SSR
3
entry-server.tsx runs renderToString
createStaticHandler runs route loaders on the server, HelmetProvider collects head tags
4
index.html template is filled
<!--app-head--> gets title/meta tags | <!--app-html--> gets rendered HTML
5
Full HTML sent to browser — crawlers see complete content immediately
6
React hydrates in the browser
App becomes interactive via createAiroBrowserRouter + AiroRouterProvider

Splash Screen

  • Shown once per browser session using sessionStorage
  • Animated globe MP4 rises and scales, tagline fades in, red progress bar fills
  • Fades out after ~3.5 seconds
  • Uses a <video> tag — never swap to a static image

Content Layer

Homepage copy is stored in src/content/pages/home.json and imported via virtual:content. This makes text inline-editable from the Airo canvas without touching code.

Express Server

The server (src/server/entry.ts) handles three categories of requests in order:

  • Static assets — files from dist/client/ via express.static
  • API routes — all /api/* paths handled by imported handler modules
  • SSR catch-all — everything else rendered by entry-server.tsx

API Handler Pattern

// src/server/api/portal/timesheet/POST.ts
import type { Request, Response } from 'express';

export default async function handler(req: Request, res: Response) {
  try {
    // logic here
    res.status(201).json({ ok: true });
  } catch (error) {
    res.status(500).json({ error: 'Failed', message: String(error) });
  }
}

// Then registered in src/server/entry.ts:
import timesheetPost from './api/portal/timesheet/POST';
app.post('/api/portal/timesheet', timesheetPost);

Every handler is manually imported and registered in entry.ts — there is no auto-discovery.

File Uploads

Multipart uploads use busboy. Files are streamed directly to /shared-storage/public/assets/uploads/ for persistence across deployments.

MySQL 8 accessed via Drizzle ORM. Migrations managed with drizzle-kit.

userBetterAuth core table — one row per login account
ColumnTypeNotes
idvarchar(36)UUID primary key
emailvarchar(255)Format: ETSXXX@etechnosoft.internal
isAdminbooleanLegacy flag; role on employee table
accountBetterAuth credentials — stores scrypt password hash
ColumnTypeNotes
accountIdvarchar(255)Same as userId for credential auth
providerIdvarchar(255)Always 'credential'
passwordvarchar(255)scrypt hash via @better-auth/utils/password
employeeEmployee profile — one row per employee, linked to user
ColumnTypeNotes
employeeIdvarchar(50)e.g. ETS-001
rolevarchar(20)superAdmin | admin | employee
personalEmailvarchar(255)For reminder emails
timesheetRemindersbooleanEmail reminder toggle
statusReportRemindersbooleanEmail reminder toggle
timesheetMonthly timesheet PDF submissions
ColumnTypeNotes
periodStart / periodEndvarchar(10)ISO date YYYY-MM-DD
approvedHoursdecimal(6,2)Manager-approved hours
filePathvarchar(500)Path under /shared-storage/
statusReportBi-weekly status reports submitted by employees
ColumnTypeNotes
projectNamevarchar(255)Current project
tasksCompletedtextWork summary
blockerstextImpediments
hoursWorkeddecimal(6,2)Hours for period
employeeDocumentHR documents per employee (offer letters, NDAs, etc.)
ColumnTypeNotes
documentTypevarchar(100)offer_letter | agreement | nda | onboarding | other
isActivebooleanSoft delete flag
pendingChangeAdmin change approval queue — requires superAdmin review
ColumnTypeNotes
changeTypevarchar(50)profile | photo | document_delete
fieldChangestextJSON: { field: { from, to } }
statusvarchar(20)pending | approved | rejected

Authentication is handled by BetterAuth with the Drizzle adapter connecting to MySQL.

Login Flow

1
Employee enters Employee ID + Password on /login
2
Frontend calls POST /api/auth/sign-in/email
Email constructed as: {EMPLOYEEID_UPPERCASE}@etechnosoft.internal
3
BetterAuth looks up user, verifies password
scrypt via @better-auth/utils/password — NEVER bcrypt
4
Session token created, stored in httpOnly cookie
5
Client redirected to /portal or /admin based on role

Role System

RoleAccess
superAdminFull access — approves pending changes, sees all admin tabs, direct employee edits
adminEmployee edits go to pending queue for superAdmin approval
employeePortal only — timesheets, status reports, documents, ID card

Important Config Notes

  • baseURL must be explicitly set to https://etechnosoft.com
  • trustedOrigins must include etechnosoft.com — missing this causes MISSING_OR_NULL_ORIGIN errors on the live site
  • BetterAuth additionalFields (e.g. isAdmin) must have a matching DB column or auth breaks entirely
  • Employees created before the scrypt fix have unusable hashes — use admin panel password reset

Public Pages

PathPageKey Features
/HomepageParallax hero, scroll story, Who We Are, Why Clients Choose Us
/it-servicesIT ServicesService cards, How We Work, CTA
/staffingStaffing & ConsultingService cards, process, inquiry form
/careersCareers6 job listings, apply modal with resume upload
/contactContactFull inquiry form → HR email
/loginEmployee LoginEmployee ID + password, BetterAuth

Authenticated Pages

PathPageTabs / Features
/portalEmployee PortalTimesheets | Status Reports | My Documents + ID Card
/adminAdmin PanelEmployees | Pending Approvals* | Timesheets | Status Reports | Documents (*superAdmin only)
/docsArchitecture DocsThis page (noindex — not indexed by search engines)

Public / Contact

MethodPathDescription
POST/api/contact/inquiryGeneral contact form → HR@ETECHNOSOFT.COM
POST/api/contact/staffing-inquiryStaffing inquiry form
POST/api/careers/applyJob application with resume upload

Employee Portal (auth required)

MethodPathDescription
GET/api/portal/meCurrent employee profile
POST/api/portal/timesheetSubmit timesheet PDF
GET/api/portal/timesheetsList own timesheets
GET/api/portal/timesheets/:tsIdDownload timesheet PDF
POST/api/portal/status-reportSubmit status report
GET/api/portal/status-reportsList own status reports
GET/api/portal/status-reports/:srIdView/download status report PDF
GET/api/portal/documentsList own HR documents
GET/api/portal/id-cardGenerate + download ID card PDF

Admin (admin/superAdmin required)

MethodPathDescription
GET/api/admin/employeesList all employees
POST/api/admin/employeesCreate employee + user account
PUT/api/admin/employees/:idUpdate employee (direct or pending queue)
DELETE/api/admin/employees/:idDeactivate employee
POST/api/admin/employees/:id/reset-passwordReset employee password
PATCH/api/admin/employees/:id/remindersToggle reminder email flags
GET/api/admin/pending-changesList pending change requests
POST/api/admin/pending-changes/:id/reviewApprove or reject a change
GET/api/admin/timesheetsList all timesheets
GET/api/admin/status-reportsList all status reports

Emails are sent via the Airo Email Gateway — no SMTP credentials required.

import { sendEmail } from '../../../email.js';
// Note: relative import path, NOT '#airo/email'

Email Flows

TriggerFromToNotes
Contact inquiryinfo@etechnosoft.comHR@ETECHNOSOFT.COMReply-to set to sender
Staffing inquiryinfo@etechnosoft.comHR@ETECHNOSOFT.COM
Job applicationcareers@etechnosoft.comCAREERS_EMAIL secretIncludes resume attachment
Timesheet submissionTIMESHEETS@ETECHNOSOFT.COMhr@ + timesheets@
Timesheet reminderTIMESHEETS@ETECHNOSOFT.COMemployee personalEmailDays 1–5 of month
Status report reminderHR@ETECHNOSOFT.COMemployee personalEmailDays 1–5 of month

Automated Reminders

  • Run on an hourly cron inside the Express server
  • Fire only on days 1–5 of each month
  • Stop automatically once the employee submits for the current month
  • Per-employee enable/disable via admin panel reminder toggles
LocationPurposeWeb URLPersists?
/shared-storage/public/assets/uploads/Employee photos, timesheets, documents, resumes/airo-assets/uploads/<path>Yes — survives deploys
/private/Private files (not web-accessible)None — requires authYes
/tmp/Temporary processing filesNoneNo
dist/client/Built React SPA + static assetsServed by express.staticRebuilt on each deploy

Media Slots (Airo Asset System)

SlotTypeContent
logo/horizontalImageETECHNOSOFT PNG logo
pages/home/hero-videoVideoAnimated globe MP4 (header + splash)
pages/home/hero-bgImageDark circuit board background
pages/it-services/hero-bgImageData center photo
pages/staffing/hero-bgImageRecruitment handshake photo

Brand Colors

TokenValueUsage
--primaryhsl(0 100% 50%) — RedCTAs, accents, active borders
--secondaryhsl(210 100% 40%) — BlueIcons, highlights, links
--backgroundhsl(0 0% 0%) — BlackPage background
--foregroundhsl(0 0% 96%) — Near whitePrimary text
--cardhsl(0 0% 5%) — Dark greyCard surfaces
--muted-foregroundhsl(0 0% 50%) — Mid greySecondary text

Typography

RoleFontWeights
Headings (h1–h6)Rajdhani600, 700
Body / UIInter400, 500, 600

Rules

  • All colors defined as CSS custom properties — no hardcoded hex values anywhere
  • Logo in UI uses <video> (animated MP4); in PDFs uses static PNG absolute URL
  • Mobile header: Logo + Login + hamburger only; dropdown reveals nav links
  • html and body have overflow-x: hidden globally to prevent horizontal scroll
AreaImplementation
Password hashingscrypt via @better-auth/utils/password — never bcrypt
SessionshttpOnly cookies, BetterAuth session management
CORStrustedOrigins: ['etechnosoft.com'] in BetterAuth config
Input validationZod schemas on all API inputs
File uploadsbusboy stream-to-disk, no temp files in memory
SecretsAiro Secrets Manager — never in source code
XSSReact's built-in escaping + eslint-plugin-no-unsanitized
Dependency auditbetter-npm-audit at high severity level

Patched Vulnerabilities (Dec 2026)

  • Critical  BetterAuth: Account takeover via pre-account hijacking
  • Critical  cross-spawn: Command injection on Windows
  • High  React Router: DoS via unbounded route-manifest expansion
  • High  Zod: Memory exhaustion on oversized collections

Build Process

npm run build
# Runs two Vite builds in sequence:
# 1. vite build          → dist/client/  (React SPA + static assets)
# 2. vite build --ssr    → dist/server.bundle.mjs  (Express + SSR)

Publishing Flow

1
Code changes auto-committed to project git branch
2
Click "Publish" in the Airo Builder UI
3
Platform runs npm run build
4
dist/server.bundle.mjs deployed to hosting environment
5
etechnosoft.com routes to the deployed app
6
IndexNow auto-pings Bing/Yandex with updated sitemap

Environment Secrets

SecretPurpose
BETTER_AUTH_SECRETBetterAuth session encryption key (auto-generated)
CAREERS_EMAILDestination email for job applications

Runtime Notes

  • Runtime: Node.js on Alpine Linux (musl)
  • No glibc native addons — use pure-JS alternatives (bcryptjs not bcrypt, jimp not sharp)
  • Persistent storage at /shared-storage/ and /private/
  • Database credentials are platform-managed — not exposed as secrets

ETECHNOSOFT INC — Architecture Documentation v1.0 — December 2026

Built with GoDaddy Airo · React 19 · TypeScript · Express · MySQL · BetterAuth

Empowering Business Through Technology.

Contact

info@etechnosoft.com

15310 Amberly Drive, Suite #250
Tampa, FL 33647

© 2026 ETECHNOSOFT INC. All rights reserved.

IT Services · Staffing · Consulting