System Requirements
Before installing GIMA, ensure your system meets these requirements:Required
- Node.js: Version 20.x or higher
- Package Manager: npm (included with Node.js), pnpm, or yarn
- Git: For cloning the repository
- Operating System: Windows 10+, macOS 10.15+, or Linux
Recommended
- RAM: 8GB minimum, 16GB recommended
- Storage: 2GB free space for dependencies and build files
- Browser: Modern browser (Chrome, Firefox, Safari, Edge) for development
- Code Editor: VS Code with TypeScript/React extensions recommended
GIMA is built with Next.js 16.1.1 which requires Node.js 20 or higher. Check your version with
node --version.Installation Steps
Follow these detailed steps to install GIMA:Install Node.js
If you don’t have Node.js 20+ installed:Using nvm (Recommended):Direct Download:
Download from nodejs.org and install the LTS version (20.x or higher).Verify Installation:
Clone the Repository
Clone the GIMA project from GitHub:Alternative: Download ZIPIf you don’t have Git:
- Visit github.com/GonzalezCesar/gima-project
- Click “Code” → “Download ZIP”
- Extract the archive and navigate to the folder
Install Dependencies
Install all required packages using your preferred package manager:This installs the following key dependencies:Core Framework:
[email protected]- React framework[email protected]- React library[email protected]- React DOM renderertypescript@^5- TypeScript support
tailwindcss@^4- Utility-first CSS frameworklucide-react@^0.562.0- Icon libraryclsx@^2.1.1- Conditional class namestailwind-merge@^3.4.0- Merge Tailwind classesclass-variance-authority@^0.7.1- Component variants
@tailwindcss/postcss@^4.1.18- PostCSS plugineslint@^9- Code linting[email protected]- React optimization
Installation may take 2-5 minutes depending on your internet connection.
Environment Configuration
GIMA uses environment variables for configuration:Create Environment File
Currently, GIMA doesn’t require a
.env file for basic development, but you may want to create one for custom configuration:.env.local is automatically ignored by Git and is the recommended file for local development settings.Development Server Setup
Now you’re ready to run GIMA:Access the Application
Open your browser and navigate to:You’ll be automatically redirected to the login page (
/auth/login).Verify All Pages Load
Test that key pages are accessible:
- Login:
http://localhost:3000/auth/login - Dashboard:
http://localhost:3000/dashboard(after login) - Configuration:
http://localhost:3000/configuracion - Reports:
http://localhost:3000/reportes
Hot Module Replacement (HMR) is enabled - changes to your code will automatically refresh the browser.
Production Build
To create a production-optimized build:Build the Application
Create an optimized production build:This will:
- Compile TypeScript to JavaScript
- Optimize React components with React Compiler
- Bundle and minify all code
- Generate static pages where possible
- Create optimized production assets
.next directory.Start Production Server
Run the production build:The production server will start on
http://localhost:3000 by default.Project Structure
After installation, your project structure will look like:Configuration Files
Key configuration files and their purposes:next.config.ts
Next.js configuration with React Compiler enabled:tsconfig.json
TypeScript configuration with path aliases:import { MainLayout } from "@/components/layout/MainLayout"
components.json
Shadcn UI configuration:Troubleshooting
Common installation issues and solutions:Node Version Errors
Node Version Errors
Error:
error [email protected]: The engine "node" is incompatible with this moduleSolution:-
Check your Node.js version:
-
If below v20, upgrade Node.js:
-
Retry installation:
Port Already in Use
Port Already in Use
Error: Solution 2 - Kill Process on Port 3000:
Port 3000 is already in useSolution 1 - Use Different Port:EACCES Permission Errors
EACCES Permission Errors
Error: Then retry installation.
EACCES: permission deniedSolution:
Don’t use sudo with npm. Instead, fix npm permissions:Module Not Found After Installation
Module Not Found After Installation
Error:
Module not found: Can't resolve '@/components/...'Solution:- Ensure you’re in the project root directory
-
Delete
.nextandnode_modules: -
Clear npm cache:
-
Reinstall:
TypeScript Compilation Errors
TypeScript Compilation Errors
Error: Various TypeScript errors during buildSolution:
-
Verify TypeScript version:
-
Delete TypeScript cache:
-
Restart the dev server:
-
If errors persist, check for type errors:
Build Fails with Out of Memory
Build Fails with Out of Memory
Error:
JavaScript heap out of memorySolution:
Increase Node.js memory limit:Slow Installation on Windows
Slow Installation on Windows
Issue: npm install takes very long on WindowsSolution:
- Disable Windows Defender real-time scanning for the project folder temporarily
-
Use pnpm instead (faster on Windows):
-
Or enable package-lock optimizations:
Next Steps
Now that GIMA is installed:Quickstart Guide
Take a quick tour of GIMA’s main features
Configuration
Configure GIMA for your organization
API Reference
Learn how to use GIMA components
Configuration
Configure GIMA for your needs
Getting Help
If you encounter issues not covered here:- Check the Quickstart Guide for basic usage
- Review Next.js documentation
- Report bugs on GitHub Issues
- Access in-app support through the Asistencia module