-
Notifications
You must be signed in to change notification settings - Fork 0
Workflow End to End
The whole Crodox journey in one go.
Here's what you'll do:
- Sign Up & Authenticate - Create your account
- Set Up GitHub - Connect your repositories
- Create Your First Template - Build or import a grammar
- Run Your First Workbench - Analyze code and extract components
- Generate a Pull Request - Push changes back to your repository
Time estimate: 20–30 minutes
Start here: https://crodox-app.com/home
- Open https://crodox-app.com/home in your web browser
- You arrive at the login page
- Enter your email address
- Accept the Terms of Service and Privacy Policy
- Click Send verification code
- Check your email for a 6-digit verification code from Crodox
- Return to the Crodox app
- Enter the code in the verification field
- Click Verify code
- You are redirected to GitHub Enterprise to authorize the Crodox app
- Review the requested permissions (repository access, etc.)
- Click Authorize to grant Crodox access
- Return to the Crodox app
- Enter a username (your display name in Crodox)
- Click Save
You are now logged into Crodox. Welcome!
- Click Settings (gear icon) in the left sidebar
- Scroll to GitHub Integration
- Verify that it shows "GitHub account linked" with your username
- If not linked, click Re-link GitHub and repeat Step 4
- If prompted, click Manage Repository Access
- Ensure that your repositories are listed as accessible
- Return to the main Crodox interface
You now have full access to your GitHub repositories.
- Click the Template Editor icon (
<>) in the left sidebar - Click the Templates tab
- Enter a template name (e.g.,
MyAngularTemplate_v1) - Click + to create
- Click the Template menu and select Import Template from Repository
- Select angularTemp (github) and click Import
- Click Save to store your template
You now have a working template imported from angularTemp.
- Click the Template Editor icon
- Click the Templates tab
- Enter a template name
- Click +
- In the Grammar Editor, write your grammar (see Creating-First-Template for examples)
- Click Save
- In the Project Explorer (center-left), open the Repository dropdown
- If you imported angularTemp, select it; otherwise, choose any repository
- The project tree loads
- Expand folders in the project explorer (e.g.,
src→app) - Click on a code file to load it
- Your grammar runs automatically
In the Trial Extraction Field, you should see extracted components. If nothing appears:
- Check your grammar syntax (see Syntax-Overview)
- Verify the file type matches your
<~ file.xy ~>pattern - Try a different file
- Refine your grammar and re-save
When extraction looks good, proceed to Step 11.
- Click the Workbench icon (circular arrow) in the left sidebar
- Click Create Workbench button
-
Workbench Name – Enter a descriptive name (e.g.,
MyFirstAnalysis) - Select Template – Choose your template from Step 3
-
Select Repository – Choose the repository to analyze
- For learning: use simpleDemo or angularTemp
- For real work: select your own repository
- Select Files – Expand the folder tree and check the files you want to analyze
- Review Patch Preview – Scroll down to see what patches will be generated
- Click Create Workbench in the bottom-right corner
- Crodox begins analyzing (you see a loading state)
- Results appear within moments
- Extracted Components – View all identified objects
- Patch Preview – See the code changes that will be generated
- Locations – Review source and target file paths
- Codespace – Optionally, click Create Codespace for interactive editing
- Review the Patch Preview to ensure changes look correct
- Click Generate Pull Request (or Merge into Origin depending on your setup)
- Crodox creates a pull request in your GitHub repository
- You receive a notification with a link to the PR
- Follow the link to GitHub or visit your repository
- Open the pull request that Crodox created
- Review the diff and code changes
- Merge the PR or request feedback from your team
You've now been through the whole cycle: signed up, connected your repos, built a template, ran a workbench, and pushed a PR. You know how the tool works.
From here you can:
- Modify the grammar to catch more patterns in your own code
- Create workbenches for different projects or codebases
- Use the Codespace feature to edit results directly in VS Code
- Define custom transformation rules with the Patch Maker
- Export templates and share them with your team
For more detail on specific features, check Workflow-SimpleDemo, Workflow-AngularTemplate, Template-Editor, or Syntax-Overview.
| Step | Action | Where |
|---|---|---|
| 1 | Open app | https://crodox-app.com/home |
| 2 | Create account | Login page |
| 3 | Verify email | Email inbox |
| 4 | Authorize GitHub | GitHub Enterprise |
| 5 | Set username | Settings page |
| 6–7 | Verify GitHub link | Settings page |
| 8–10 | Test template | Template Editor |
| 11–13 | Create workbench | Workbench section |
| 14–16 | Generate PR | Workbench detail view |
| Problem | Solution |
|---|---|
| Can't sign in | Check your email for verification code; request a new one if needed |
| GitHub not linked | Go to Settings and click Re-link GitHub |
| Repository not visible | Ensure GitHub access is authorized; refresh the page |
| Template won't save | Check grammar syntax in the error message |
| No components extracted | Verify file types match your grammar patterns |
| Workbench creation fails | Ensure you have selected a template and repository |
- For issues: Check the relevant workflow page or documentation
- For questions: Refer to the App-* pages for feature documentation
- For examples: See the Example-* pages for grammar patterns
Start your journey now: https://crodox-app.com/home
Demo repositories: simpleDemo | angularTemp
- Getting Started
- Sign-Up
- Home Screen
- Creating Your First Template
- Template Editor
- Application Navigation
- Syntax Overview
- Workflow: End-to-End
- Workflow: Test with simpleDemo
- Workflow: Build Template from angularTemp
- Demo Repositories
- Template
- Workbench
- GitHub Integration
- GitHub App Installation
- GitHub Repository Setup
- GitHub Re-linking
- Settings
- Overview
- Declarations
- Types
- Scoping