This is a React + TypeScript + Vite project that powers The Sambo Store blog UI. It includes Tailwind CSS for styling and optional AI assistant features.
- Node.js 18+ (LTS recommended)
- npm (comes with Node) or yarn/pnpm
Check your versions:
node -v
npm -vFrom the project root:
npm installThis installs all required packages, including React, Vite, Tailwind CSS, TypeScript, and ESLint tooling.
npm run devVite will start the dev server and show the local URL in your terminal.
npm run build # Type-check + production build
npm run preview # Preview built app locallyThe AI assistant component reads keys from Vite environment variables. For local testing, you can create a .env.local file in the project root and add one of the following:
# Gemini (Google)
VITE_GEMINI_API_KEY=your_gemini_key_here
# OR OpenAI
VITE_OPENAI_API_KEY=your_openai_key_here
# Optional, defaults to "gpt-5" in code
VITE_OPENAI_MODEL=gpt-5Notes:
- Vite inlines any
VITE_variables into the client bundle. Do not use real production secrets on the client. Prefer a server proxy for production. - Consider adding
.env*to.gitignoreto avoid accidental commits.
npm run dev: Start Vite dev servernpm run build: Type-check and build for productionnpm run preview: Preview the production build locallynpm run lint: Run ESLint
- React 19, React Router
- Vite 7
- TypeScript 5
- Tailwind CSS 3
There is an additional Vite project under the-sambo-store-blog/. To run it separately:
cd the-sambo-store-blog
npm install
npm run devThat sub-app’s dev server is configured to use port 3000 in its Vite config.
- Ensure Node 18+.
- If the dev server doesn’t open, check for port conflicts and try again.
- If AI features error with missing keys, add the appropriate key to your local
.env.local(see above) or disable the assistant UI when testing.