You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+13-7Lines changed: 13 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
>[!NOTE]
3
3
> Building from source is only required if you'd like to contribute. The recommended way to use Sourcebot is to use the [pre-built docker image](https://github.com/sourcebot-dev/sourcebot/pkgs/container/sourcebot).
4
4
5
-
1. Install <ahref="https://go.dev/doc/install"><imgsrc="https://go.dev/favicon.ico"width="16"height="16"> go</a>, <ahref="https://nodejs.org/"><imgsrc="https://nodejs.org/favicon.ico"width="16"height="16"> NodeJS</a>, [redis](https://redis.io/), and [postgres](https://www.postgresql.org/). Note that a NodeJS version of at least `21.1.0` is required.
5
+
1. Install <ahref="https://go.dev/doc/install"><imgsrc="https://go.dev/favicon.ico"width="16"height="16"> go</a>, and <ahref="https://nodejs.org/"><imgsrc="https://nodejs.org/favicon.ico"width="16"height="16"> NodeJS</a>. Note that a NodeJS version of at least `21.1.0` is required.
6
6
7
7
2. Install [ctags](https://github.com/universal-ctags/ctags) (required by zoekt)
8
8
```sh
@@ -13,28 +13,34 @@
13
13
snap install universal-ctags
14
14
```
15
15
16
-
3. Clone the repository with submodules:
16
+
3. Install <a href="https://docs.docker.com/get-started/get-docker/"><img src="https://www.docker.com/favicon.ico" width="16" height="16"> docker</a> and start the development Docker containers for PostgreSQL and Redis.
4. Run `make` to build zoekt and install dependencies:
27
+
5. Run `make` to build zoekt and install dependencies:
22
28
```sh
23
29
cd sourcebot
24
30
make
25
31
```
26
32
27
33
The zoekt binaries and web dependencies are placed into `bin` and `node_modules` respectively.
28
34
29
-
5. Create a copy of `.env.development` and name it `.env.development.local`. Update the required environment variables.
35
+
6. Create a copy of `.env.development` and name it `.env.development.local`. Update the required environment variables.
30
36
31
-
6. If you're using a declerative configuration file (the default behavior if you didn't enable auth), create a configuration file and update the `CONFIG_PATH` environment variable in your `.env.development.local` file.
37
+
7. If you're using a declerative configuration file (the default behavior if you didn't enable auth), create a configuration file and update the `CONFIG_PATH` environment variable in your `.env.development.local` file.
32
38
33
-
7. Start Sourcebot with the command:
39
+
8. Start Sourcebot with the command:
34
40
```sh
35
41
yarn dev
36
42
```
37
43
38
44
A `.sourcebot` directory will be created and zoekt will begin to index the repositories found in the `config.json` file.
0 commit comments