This guide provides step-by-step instructions for migrating CodePatchwork from Replit to GitHub.
- A GitHub account
- Git installed on your local machine
- Basic knowledge of Git and GitHub
- Log in to your GitHub account
- Click the "+" icon in the top-right corner and select "New repository"
- Name the repository "CodePatchwork"
- Add a description: "A visual code snippet management application inspired by Pinterest"
- Choose "Public" for the repository visibility
- Check "Add a README file"
- Select "MIT License" from the "Add a license" dropdown
- Click "Create repository"
git clone https://github.com/hexawulf/CodePatchwork.git
cd CodePatchworkThere are two approaches to export your code from Replit:
- Download the entire Replit project as a ZIP file (using the "Download as ZIP" option)
- Extract the ZIP to a temporary location
- Navigate to the extracted folder
- Run the migration script:
./scripts/github-migration.sh- Clone the GitHub repository locally
- Copy all files from Replit to your local repository (excluding
.replit,.cache, etc.) - Initialize git and commit changes:
git init
git add .
git commit -m "Initial commit: CodePatchwork v1.0"
git remote add origin https://github.com/hexawulf/CodePatchwork.gitgit push -u origin maingit tag -a v1.0.0 -m "First stable release"
git push origin v1.0.0- Ensure the
.github/workflows/ci.ymlfile is included in your repository - GitHub Actions will automatically run based on the workflow configuration
- Go to your repository's "Settings" tab on GitHub
- Configure branch protection rules for the main branch
- Set up GitHub Pages if you want to host documentation
- Add collaborators if needed
Make sure your package.json has the correct repository information:
"repository": {
"type": "git",
"url": "https://github.com/hexawulf/CodePatchwork.git"
},
"author": "0xWulf <dev@0xwulf.dev>",
"license": "MIT",Consider creating GitHub issues for planned features:
- Advanced tagging system
- Enhanced collection management
- User preference persistence
- Mobile application integration
- Collaboration features
- If you encounter issues with large files, consider setting up Git LFS
- For database migration issues, refer to the database migration scripts in the
scriptsdirectory - Contact the repository owner at dev@0xwulf.dev for assistance
This migration guide was created by 0xWulf (dev@0xwulf.dev) for CodePatchwork v1.0.0