-
-
Notifications
You must be signed in to change notification settings - Fork 0
Installation & Deployment
You can deploy GitHub Bubble Chart on Vercel or any other platform that supports Node.js applications.
- Node.js 18 or higher (download)
- Yarn 1.22 or higher (installation guide)
- GitHub account and a personal access token
- Git installed on your machine (for development/deployment from source)
All deployments require the following environment variables:
| Variable | Description | Default | Required |
|---|---|---|---|
GITHUB_TOKEN |
Your GitHub personal access token | - | Yes |
PORT |
Server port number | 9000 | No |
CACHE_MAX_AGE |
Cache duration in seconds for generated SVGs | 14400 (4 hours) | No |
DEFAULT_GITHUB_RETRY_DELAY |
Delay between GitHub API retry attempts (ms) | 1000 | No |
DEFAULT_GITHUB_MAX_RETRY |
Maximum number of GitHub API retry attempts | 3 | No |
LANGUAGE_MAPPINGS_URL |
Base URL for language mappings file | Repository main branch URL | No |
NODE_ENV |
Node environment (dev or prod) |
prod for deployments |
No |
Note
While only GITHUB_TOKEN is strictly required, setting appropriate values for the other variables is recommended for optimal performance.
- Fork/Clone the Repository β Create your own copy of the code
-
Install Dependencies β Run
yarn install -
Build the Project β Run
yarn build - Set Environment Variables β Configure your GitHub token and other variables
-
Start the Application β Run
yarn startor use platform-specific commands
π§ Step-by-step guide for Vercel deployment
- Fork the Repository β First, fork the GitHub repository to your own account.
- Go to vercel.com β Create an account or sign in.
-
Sign in with GitHub β Click on
Log inand thenContinue with GitHub. - Allow Access β Sign in to GitHub and allow access to repositories if prompted.
-
Import Your Project β
- Go to Vercel Dashboard
- Click "Add New..." and select "Project"
- Select your forked repository
-
Create a GitHub Personal Access Token β
- Go to GitHub Settings > Developer settings > Personal access tokens
- Click "Generate new token"
- Give it a descriptive name
- Select the
reposcope to access private repositories - Click "Generate token" and copy the token value
- Configure Environment Variables β Add all required environment variables from the table above
- Deploy β Click "Deploy" and get your live API URL.
π Your GitHub Bubble Chart is now live and ready to use with both public AND private repositories!
Since the GitHub API has rate limits (5,000 requests per hour for authenticated requests), consider the following:
- By hosting your own instance with your personal token, you'll have your own rate limit quota
- You can adjust the cache duration in the environment variables (adjust
CACHE_MAX_AGE)
To ensure your deployment has the latest features and bug fixes:
- Use GitHub's Sync Fork button to keep your fork updated
- Alternatively, you can use automated tools like pull to automate this process
GitHub Bubble Chart can be deployed on various platforms that support Node.js applications. Follow the standard deployment steps above, along with this generic guide:
For any Node.js-compatible platform, follow these universal steps:
-
Prepare Your Environment
- Ensure the platform supports Node.js 18+
- Check if the platform allows setting environment variables
- Verify that the platform can expose HTTP ports for your service
-
Deploy Your Application
- Upload your codebase (via Git, direct upload, or other methods)
- Configure the build command:
yarn build - Set the start command:
node dist/api/index.jsoryarn start - Configure the port according to platform requirements (some platforms use their own environment variables like
$PORT)
-
Configure Environment Variables
- Add all the required environment variables from the table above
- Some platforms may require specific format or configuration files
- For containerized deployments, include variables in your container configuration
-
Monitoring and Scaling
- Set up monitoring for your application if available
- Configure auto-scaling if needed for high-traffic deployments
- Consider adjusting
CACHE_MAX_AGEfor busy deployments
-
Troubleshooting
- Check application logs for any errors
- Verify GitHub token permissions if API calls fail
- Ensure the application has network access to GitHub's API servers
Tip
For any deployment platform, the key requirements are Node.js 18+ support, ability to set environment variables, and HTTP port exposure.
For setting up the project for local development and contributing, please see the Local Development wiki page.