Prerequisites
Before setting up the frontend, ensure you have the following installed:Node.js 20+
Node.js 20+
Download and install from nodejs.org. Check your version:
npm 10+
npm 10+
Comes with Node.js. Verify installation:
Git
Git
Required for version control:
Installation
1. Clone the Repository
2. Navigate to Frontend Directory
3. Install Dependencies
- React 19 and React DOM
- TypeScript
- Vite
- TanStack Query
- React Router
- Tailwind CSS
- And all other dependencies
Installation may take 2-3 minutes depending on your internet connection.
4. Configure Environment Variables
Create a.env file in the frontend root directory:
.env
5. Start Development Server
http://localhost:5173.
Verify Installation
Check the Login Page
If everything is set up correctly, you should see the Tambo360 login page with:- Tambo360 logo
- Email and password input fields
- “Iniciar sesión” button
- Link to register page
Test Hot Module Replacement
- Open any
.tsxfile insrc/pages/ - Make a small change (e.g., modify text)
- Save the file
- The browser should automatically update without a full reload
Development Scripts
Thepackage.json includes several useful scripts:
Editor Setup
VS Code (Recommended)
Install these extensions for the best development experience:VS Code Settings
Create.vscode/settings.json in the project root:
.vscode/settings.json
Troubleshooting
Port Already in Use
If port 5173 is already in use:Module Not Found Errors
TypeScript Errors
Build Errors
Environment Variables Not Working
.env, restart the dev server:
Next Steps
Project Structure
Understand the architecture
Layout Components
Learn about layout system
Authentication
Implement authentication
Routing
Configure application routes
Additional Resources
Vite Docs
Official Vite documentation
React Docs
Official React documentation
TypeScript
TypeScript handbook
