Thank you for your interest in contributing to NextSight! This document provides guidelines and instructions for contributing.
By participating in this project, you agree to maintain a respectful and inclusive environment for everyone.
- Check if the bug has already been reported in Issues
- If not, create a new issue with:
- Clear, descriptive title
- Steps to reproduce
- Expected vs actual behavior
- Environment details (OS, Docker version, K8s version)
- Check existing issues for similar suggestions
- Create a new issue with the
enhancementlabel - Describe the feature and its use case
- Fork the repository
- Create a feature branch from
develop:git checkout -b feature/your-feature-name
- Make your changes following our coding standards
- Write/update tests if applicable
- Update documentation if needed
- Commit with clear, descriptive messages
- Push and create a Pull Request to
develop
- Python 3.11+
- Node.js 18+
- Docker & Docker Compose
- kubectl configured with a cluster
# Clone the repository
git clone https://github.com/gauravtayade11/nexops.git
cd NextSight
# Using Docker Compose (recommended)
make dev
# Or manually:
# Backend
cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reload
# Frontend (new terminal)
cd frontend
npm install
npm run dev- Follow PEP 8 style guide
- Use type hints
- Write docstrings for public functions
- Keep functions focused and small
- Use TypeScript strict mode
- Follow ESLint configuration
- Use functional components with hooks
- Keep components focused and reusable
- Use present tense ("Add feature" not "Added feature")
- Use imperative mood ("Move cursor" not "Moves cursor")
- Keep first line under 72 characters
- Reference issues when applicable
NextSight/
├── backend/ # FastAPI backend
│ ├── app/
│ │ ├── api/ # API routes
│ │ ├── core/ # Configuration
│ │ ├── schemas/ # Pydantic models
│ │ └── services/ # Business logic
│ └── tests/
├── frontend/ # React frontend
│ ├── src/
│ │ ├── components/
│ │ ├── services/
│ │ └── types/
│ └── tests/
└── k8s/ # Kubernetes manifests
main- Production-ready codedevelop- Integration branch for featuresfeature/*- New featuresbugfix/*- Bug fixeshotfix/*- Urgent fixes for productionrelease/*- Release preparation
We follow Conventional Commits:
<type>(<scope>): <subject>
<body>
<footer>
Types: feat, fix, docs, style, refactor, perf, test, chore
Example:
feat(security): add AI-powered remediation for RBAC issues
- Integrate Google Gemini for intelligent analysis
- Add step-by-step remediation commands
Closes #123
# Backend tests
cd backend && pytest --cov=app
# Frontend linting
cd frontend && npm run lint
# Type checking
cd frontend && npx tsc --noEmitFor security vulnerabilities, please see SECURITY.md.
- Check the Wiki
- Join Discussions
- Open an issue with the
questionlabel
Thank you for contributing!