- Initialize Git repository with main branch - Create .gitignore for web application (Node.js) - Setup docs/ directory for project documentation - Add README.md with project overview and setup instructions - Add CONTRIBUTING.md with contribution guidelines - Add LICENSE with MIT license text - Configure pre-push hooks for code quality checks BREAKING CHANGE: Repository structure established for team collaboration
3.4 KiB
M1: Setup Git Project Prompt
Prompt
Create a new git repository for a news web application called newzy. Follow these steps:
- Initialize a new Git repository in the
newzyproject directory - Configure
.gitignorewith appropriate exclusions for web applications (node modules, logs, env files, etc.) - Set up initial branch structure:
main: Production-ready, stable releasesdevelop: Integration branch for feature development
- Create the following initial file structure:
docs/- Project documentation
- Add
README.mdwith project overview and setup instructions - Add
CONTRIBUTING.mdwith contribution guidelines - Add
LICENSEwith MIT license text - Commit all initial files with a descriptive commit message following conventional commits format
- Create the
developbranch frommain - Push both branches to remote repository
Remember: This is just project setup. Do NOT implement any news web application functionality yet.
Description
This milestone sets up the foundational git infrastructure for newzy, a news web application. The scope is limited to repository initialization and project scaffolding—no actual news functionality will be implemented at this stage.
Purpose: Create a professional, maintainable git repository structure that enables smooth team collaboration from day one.
Target Audience: New contributors, team members, and future developers joining the project.
Expected Outcomes: A fully initialized git repository with proper branching strategy, documentation, and standard files ready for development work.
Acceptance Criteria
- Git repository is initialized with proper configuration
- Standard branch strategy is documented (e.g., main, develop, feature/*)
- File structure and naming conventions are clearly defined
- LICENSE file with MIT license is included
- .gitignore file includes relevant exclusions for the project type
- Initial README.md explains how to get started
- Sample commit messages demonstrate best practices
- Documentation covers branching, merging, and rebase workflows
Technical Details
Project Structure
project-root/
├── docs/
│ └── ... # Documentation for the project
├── LICENSE # MIT License
├── README.md
└── CONTRIBUTING.md
Branch Strategy
main: Production-ready code, stable releasesdevelop: Integration branch for feature developmentfeature/*: New features and enhancementsbugfix/*: Bug fixes from develophotfix/*: Critical fixes from main
License
MIT License - See LICENSE file in project root
Git Configuration Requirements
- Email and name configured on all contributors
- Pre-push hooks for code quality checks
- Merge conflict resolution strategy documented
QA Notes
Testing Checklist
- Verify git history is clean and properly formatted
- Confirm .gitignore excludes all necessary files
- Test branch creation and switching workflow
- Validate merge and rebase instructions work correctly
- Check README examples are accurate
- Ensure documentation is language-appropriate
Known Issues / Limitations
- Any known limitations in the prompt that should be addressed in future iterations
Success Metrics
- Time to onboard new contributor (hours)
- Number of merge conflicts after training
- Contribution quality scores