This guide covers the prerequisites and environment setup required to develop, build, and deploy GitScope.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/David-Andino/github-dashboard/llms.txt
Use this file to discover all available pages before exploring further.
System Requirements
GitScope requires the following software installed on your system:Node.js
Minimum version: 18.xNode.js 18 or higher is required for Vite and modern JavaScript features used in the project.
npm
Minimum version: 9.xnpm 9 or higher is required for package management and running build scripts. npm is included with Node.js.
Verifying Installations
Before starting development, verify that you have the correct versions installed:If your versions are below the minimum requirements, you’ll need to update Node.js and npm before proceeding.
Installing Node.js and npm
If you don’t have Node.js installed or need to update:Initial Project Setup
Once you have Node.js and npm installed, set up the GitScope project:Install Dependencies
package.json:react^18.2.0 - UI frameworkreact-dom^18.2.0 - React DOM renderingrecharts^2.10.3 - Chart library for language visualizationlucide-react^0.263.1 - Icon libraryvite^5.0.8 - Build tool and dev server@vitejs/plugin-react^4.2.1 - React plugin for Vitegh-pages^6.1.1 - GitHub Pages deployment utility
Verify Installation
http://localhost:5173. You should see output like:Development Server Configuration
The Vite development server runs with the following default settings:The local development server port. Can be changed with the
--port flag:By default, the server only accepts connections from localhost. To expose to your network:
Enabled by default. Updates are reflected instantly without full page reloads.
The base URL path configured in
vite.config.js. This matches the production deployment path on GitHub Pages.Environment Variables
GitScope does not require environment variables for development or production. All configuration is handled through:- GitHub API Token: Stored in browser
localStorageafter user input - Build Configuration: Defined in
vite.config.jsandpackage.json - GitHub API Endpoint: Hardcoded to
https://api.github.com
Example Environment Setup (Optional)
If you need to add environment-specific configuration:.env.local
src/config.js
Development Workflow
Once your environment is set up, follow this typical development workflow:IDE Setup (Optional)
For the best development experience, consider using:VS Code Extensions
- ES7+ React/Redux/React-Native snippets - Code snippets for React
- ESLint - JavaScript linting
- Prettier - Code formatting
- CSS Modules - IntelliSense for CSS Modules
- Vite - Vite-specific features and syntax highlighting
VS Code Settings
.vscode/settings.json
Troubleshooting
Port Already in Use
If port 5173 is already in use:Permission Errors on npm install
On Linux/macOS, avoid usingsudo with npm. If you encounter permission errors:
~/.bashrc or ~/.zshrc.
Module Not Found Errors
If you see “Module not found” errors:Vite Server Not Starting
Check that:- Node.js version is 18 or higher
- No other process is using port 5173
- All dependencies installed successfully
vite.config.jshas no syntax errors
Next Steps
Build Process
Learn about the Vite build configuration and optimization
GitHub Pages Deployment
Deploy your application to GitHub Pages