A production-ready marketing and lead generation web application for Skylyfe Technologies LLC.
This platform showcases emerging technology services including AI/ML, Spatial/AR, 3D printing, IoT/GPS, e-commerce, branding, and training. It features a sophisticated AI-powered Statement of Work (SOW) generator that creates professional project scopes with PDF export and email notification capabilities.
- React 18 with TypeScript
- Vite - Build tool and development server
- Tailwind CSS - Utility-first styling
- shadcn/ui - Component library (New York style)
- Wouter - Lightweight React router
- TanStack Query - Server state management
- React Hook Form + Zod - Form handling and validation
- Node.js with Express
- TypeScript (ES modules)
- Drizzle ORM - Database toolkit
- PostgreSQL - Database
- OpenAI API - SOW generation with structured JSON output
- Puppeteer - PDF generation from HTML
- Resend - Email notifications
- Replit Auth - User authentication (Google, GitHub, Apple, email/password)
├── client/ # Frontend React application
│ └── src/
│ ├── components/ # Reusable UI components
│ ├── pages/ # Page components
│ ├── content/ # Static content files
│ ├── hooks/ # Custom React hooks
│ └── lib/ # Utility functions
├── server/ # Backend Express server
│ ├── routes.ts # API endpoints
│ ├── sow.ts # SOW generation logic
│ ├── pdf.ts # PDF generation
│ ├── email.ts # Email notifications
│ └── storage.ts # Database operations
├── shared/ # Shared types and schemas
│ └── schema.ts # Drizzle schema definitions
└── attached_assets/ # Static assets and images
- Node.js 20+
- PostgreSQL database
The following environment variables are required:
DATABASE_URL- PostgreSQL connection stringSESSION_SECRET- Session encryption keyAI_INTEGRATIONS_OPENAI_API_KEY- OpenAI API key (via Replit integration)AI_INTEGRATIONS_OPENAI_BASE_URL- OpenAI API base URL
-
Install dependencies:
npm install
-
Run database migrations:
npm run db:push
-
Start the development server:
npm run dev
The application will be available at http://localhost:5000.
- Download and install Replit Desktop
- Open your Replit project
- Click "Open in VS Code" from the workspace menu
- In your Replit project, go to Settings
- Enable "SSH" under the Developer Tools section
- Copy the SSH command provided
- In VS Code, install the "Remote - SSH" extension
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Select "Remote-SSH: Connect to Host"
- Paste the SSH connection string
- Export your project from Replit to GitHub
- Clone the repository locally:
git clone <your-repo-url> cd skylyfe-tech
- Open in VS Code:
code . - Install dependencies and set up environment variables as described above
- ESLint
- Prettier
- Tailwind CSS IntelliSense
- TypeScript Vue Plugin (Volar) or similar TypeScript support
- GitLens
| Endpoint | Method | Description |
|---|---|---|
/api/contact |
POST | Submit contact form |
/api/sow |
POST | Generate SOW (authenticated) |
/api/sow/pdf |
POST | Generate PDF from SOW (authenticated) |
/api/sow/email |
POST | Send SOW via email (authenticated) |
- HTML sanitization to prevent XSS attacks
- CSRF protection on session cookies
- Rate limiting by user account and IP
- Input validation with Zod schemas
- Secure session management with PostgreSQL-backed sessions
Run tests with:
npx jest --config jest.config.mjs --no-cacheProprietary - Skylyfe Technologies LLC