Remotely is a small demo frontend that showcases a remote job-seeking website UI. It uses React + Vite and includes example pages, components, and a small service for connecting to the Google GenAI (Gemini) API. This repository is intended as a demo / prototype you can run locally or deploy as a static site (for example using GitHub Pages).
Quick summary
- Framework: React + Vite + TypeScript
- Purpose: Demo UI for searching jobs, companies, and talents; includes components such as
JobCard,CompanyCard,TalentCard, and a smallgeminiServicefor AI-powered features.
Repo structure (important files)
index.html,index.tsx,App.tsx: app entryvite.config.ts: Vite configuration (dev server, env injection)package.json: scripts fordev,build,previewcomponents/: UI components (cards, modal, markdown, typewriter, etc.)pages/: app pages (JobsPage,CompaniesPage,TalentsPage,AISearchPage,LoginPage)services/geminiService.ts: thin wrapper for the Gemini API usagetypes.ts,constants.ts,ui.tsx: shared types and UI helpers
Requirements
- Node.js 18+ (recommended)
- npm or yarn
Development (run locally)
- Install dependencies:
npm install - Provide your Gemini API key for any AI features (optional). You can use environment variables; Vite's
loadEnvis used invite.config.ts. Create a local env file (not committed):- Create
.env.localat the project root and add:GEMINI_API_KEY=your_api_key_here
- Create
- Start dev server:
npm run dev
Build for production
- Build the app:
npm run build - Preview the production build locally:
npm run preview
Environment notes
vite.config.tsalready injectsGEMINI_API_KEYintoprocess.env.GEMINI_API_KEYfor use by the client. Keep keys secret; do not commit private keys into the repo. For production builds served publicly, ensure you are not exposing secrets that must remain private.
Helpful commands
- Install:
npm install - Dev server:
npm run dev - Build (default dist):
npm run build - Build to
docsfor GitHub Pages (main + docs):npm run build -- --outDir docs - Build to
docsand set repo base (example):npm run build -- --outDir docs --base /Remotely/
Need help automating deployment?
- I can: (a) update
vite.config.tsto addbase&build.outDir, (b) add a GitHub Action workflow that builds and pushes togh-pages, or (c) create a sampledocs/.nojekylland helper scripts. Tell me which option you prefer and I’ll make the changes.
License & attribution
- This repo is a demo. Add a license file if you want to publish with terms.