Quickstart Guide
Get your VENCOL Front Template development environment running in just 5 minutes. This guide will walk you through installation, running the dev server, and making your first customizations.Prerequisites
Before you begin, ensure you have:- Node.js 16+ installed (18.x or 20.x LTS recommended)
- A package manager: npm, pnpm, or yarn
- A code editor (VS Code recommended)
- Basic knowledge of React and TypeScript
Quick Start
Clone and Install
Clone the repository and install dependencies:This installs all dependencies from
package.json:11-23:- React 18.3.1 and React DOM
- React Router 6.22.3 for navigation
- Lucide React 0.358.0 for icons
- React Helmet Async 2.0.4 for SEO
- Vite 6.2.0 and TypeScript 5.8.2
Start Development Server
Launch the Vite development server:The application will start at
http://localhost:3000 (configured in vite.config.ts:9).The default Vite port is 5173, but this project is configured to use port 3000 for consistency with traditional React apps.
Explore the Application
Open your browser to
http://localhost:3000 and explore:- Home Page - Hero slider, features showcase, partners marquee, FAQ
- Nosotros - About page with company information
- Soluciones - Product catalog dropdown (5 solution categories)
- Blog - WordPress-integrated blog listing
- Contacto - Contact information and forms
Project Structure Overview
Understanding the basic structure helps you navigate the codebase:Your First Customization
Let’s make a simple customization to see how the app works.1. Update the Hero Title
Opendata/data.tsx and find the home hero section:
data/data.tsx
highlight text to something else, save the file, and watch the browser auto-reload with your changes thanks to Vite’s Hot Module Replacement (HMR).
2. Change Brand Colors
The brand color is defined inindex.html:22-26 within the <style> tag:
index.html
#56B501 to your preferred brand color. The change will apply across all buttons, highlights, and accents.
3. Add a New Solution
Add a new product to the solutions catalog by editingdata/solutions.tsx:
data/solutions.tsx
/soluciones/my-new-solution.
Available Scripts
The project includes these npm scripts frompackage.json:6-9:
| Command | Description |
|---|---|
npm run dev | Start development server with HMR at localhost:3000 |
npm run build | Build production bundle to dist/ directory |
npm run preview | Preview production build locally |
Understanding the Routing
The app uses React Router 6 for client-side navigation. Routes are defined inApp.tsx:30-40:
App.tsx
- Static routes:
/,/nosotros,/blog,/contacto - Dynamic routes:
/soluciones/:slugfor products,/blog/:slugfor posts - Catch-all:
/:slugfetches WordPress pages by slug
WordPress Integration
The app can fetch blog posts from a WordPress site via REST API. The configuration is inlib/wordpress.ts:3:
lib/wordpress.ts
- Update the
WP_API_URLinlib/wordpress.ts - Ensure your WordPress site has REST API enabled
- Blog posts will automatically load from your WordPress backend
Next Steps
Now that you have the basics running:Explore Components
Learn about Navbar, Footer, SEO, and UI components
Understand Architecture
Dive into the project structure and data flow
Customize Your Site
Personalize colors, content, and branding
Deploy to Production
Deploy to Vercel or Netlify in minutes
Common Issues
Port 3000 is already in use
Port 3000 is already in use
If another app is using port 3000, you can change the port in
vite.config.ts:9:vite.config.ts
Module not found errors
Module not found errors
Clear your
node_modules and reinstall:TypeScript errors in editor
TypeScript errors in editor
Ensure your editor uses the workspace TypeScript version. In VS Code:
- Open any
.tsxfile - Press
Cmd/Ctrl + Shift + P - Type “Select TypeScript Version”
- Choose “Use Workspace Version”
WordPress blog not loading
WordPress blog not loading
The app falls back to static content if WordPress is unavailable. Check:
- WordPress URL is correct in
lib/wordpress.ts:3 - WordPress REST API is enabled
- CORS is configured on WordPress (if needed)
Getting Help
- Documentation: Browse the full docs for detailed guides
- Source Code: Explore
~/workspace/source/for implementation details - GitHub: Report issues at github.com/Mich9025/vencol-front
Ready to dive deeper?
Check out the Core Concepts to understand the full architecture.