Documentation for developers contributing to the Sourcegraph code base
Learn how to develop Sourcegraph on your machine.
★ Quickstart
Run through the step by step guide and get your local environment ready. How-to guides
Context specific guides: debugging live code Troubleshooting
Help for the most common problems.
Run through the step by step guide and get your local environment ready. How-to guides
Context specific guides: debugging live code Troubleshooting
Help for the most common problems.
Clarification and discussion about key concepts, architecture, and development stack.
sg
- the Sourcegraph developer tool- Using Bazel
- Developing the web clients
- Developing the GraphQL API
- Developing the SCIM API
- Developing batch changes
- Developing code intelligence
- Developing code insights
- Developing code monitoring
- Developing observability
- Dependencies and generated code
- Code reviews
- Commit messages
- Exposing services
- Developing a store
- Developing a worker
- Developing an out-of-band migration
- Developing a background routine
- Testing
- Building p4-fusion
- The
gitserver
API - gRPC Tutorial
- Using PostgreSQL
- Migrations overview
- Migrations
- High-performance guides
- Security patterns
- Security policy
- How to disclose vulnerabilities.
- CSRF security model
- Sourcegraph secret formats
- Continuous integration
- Testing a pull request
- Testing principles
- Testing Go code
- Testing web code
- Code host test plans
- Telemetry
- Adding, changing and debugging pings
- Deploy Sourcegraph with Helm chart (BETA)
- GitHub API oddities
Guides to help with troubleshooting, configuring test instances, debugging, and more.
- How to add observability
- How to add logging
- How to find monitoring
- How to add monitoring
- Set up local monitoring development
- Set up local OpenTelemetry development
- How to write and run tests
- Run a local Sourcegraph instance behind ngrok
- Testing against code hosts