Welcome to CicloVital
CicloVital is a SaaS mental health and wellness tracking platform built with React, Ionic, and Vite. This guide will take you from zero to tracking your first wellness metrics in just a few minutes.Install Dependencies
Clone the repository and install the required packages:CicloVital uses the following core technologies:
- React 19.1.0 - UI framework
- Ionic React 8.6.4 - Mobile-first components
- Vite 7.0.4 - Build tool and dev server
- Axios 1.10.0 - HTTP client for API requests
Configure Environment Variables
Set up your environment configuration. CicloVital requires API endpoints for user authentication and services.Create a
.env file in the root directory:The application uses
VITE_PROD to determine which API URL to use. Set it to false for local development.Start the Development Server
Launch the Vite development server:The application will start on
http://0.0.0.0:5173 (configured in vite.config.js:8).You should see output like:Create Your Account
Navigate to the signup page at Upon successful registration, you’ll be automatically logged in and redirected to
/signup and create your account.The registration form requires:- Name (1-30 characters)
- Age (0-120)
- Email (valid email format, max 254 characters)
- Password (8-12 characters)
- Confirm Password (must match)
/chat.Log In to Your Account
If you already have an account, navigate to
/login and sign in with your credentials:- Email - Your registered email address
- Password - Your account password (8-12 characters)
- Submits credentials to the authentication API (src/services/authService.js:21)
- Stores user data in localStorage (src/hooks/useAuth.js:77)
- Updates the UserContext (src/contexts/UserContext.js)
- Redirects to
/chatdashboard (src/hooks/useAuth.js:80)
Access Your Wellness Dashboard
After logging in, you’ll land on the Chat page where you can:
- Start conversations with the AI wellness assistant
- Track daily records using the side menu modal
- View statistics at
/statsDashboardfor mood trends and insights - Access settings to manage your profile
What’s Next?
Authentication
Learn about the authentication system, user flows, and session management
Configuration
Explore environment variables, API endpoints, and build configuration
Services API
Dive into the API services available in CicloVital
Components
Discover the component architecture and patterns
Need Help?
If you encounter any issues during setup:- Check that your Node.js version is compatible with Vite 7.x (Node 18+)
- Verify your API endpoints are accessible
- Ensure all environment variables are properly configured
- Review the browser console for any error messages
