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: README.md
+43-31
Original file line number
Diff line number
Diff line change
@@ -11,33 +11,21 @@ Hound is an extremely fast source code search engine. The core is based on this
11
11
12
12
## Quick Start Guide
13
13
14
-
### Using Go Tools
14
+
### Building hound
15
15
16
+
0. Install [go](https://go.dev/) (minimum version required: 1.16) and [npm](https://github.com/npm/cli/#installation)
16
17
17
-
0.[Install Go](https://golang.org/doc/install) if you don't have it already. Hound requires version 1.4 or later.
18
-
You might also want to define a [`GOPATH`](https://github.com/golang/go/wiki/GOPATH) environment variable)
19
-
(it defaults to $HOME/go if you don't explicitly have one set). If everything is installed properly, `go version` should
20
-
print out the installed version of go.
21
-
22
-
1. Use the Go tools to install Hound. The binaries `houndd` (server) and `hound` (cli) will be installed in your $GOPATH/bin directory. Your $GOPATH should be in your $PATH (`echo $PATH` to check).
23
-
24
-
```
25
-
go get github.com/hound-search/hound/cmds/...
26
-
```
27
-
28
-
If the above doesn't work for you, try to install hound manually with the following:
You might have to change the path of the last command if you installed Go somewhere else on your system.
26
+
The resulting binaries (`hound`, `houndd`) can be found in the .build/bin/ directory.
39
27
40
-
2. Create a config.json file in your `$GOPATH/bin`and use it to list your repositories. Check out our [example-config.json](config-example.json)
28
+
2. Create a config.json file and use it to list your repositories. Check out our [example-config.json](config-example.json)
41
29
to see how to set up various types of repositories. For example, we can configure Hound to search its own source code using
42
30
the config found in [default-config.json](default-config.json):
43
31
@@ -52,7 +40,7 @@ the config found in [default-config.json](default-config.json):
52
40
53
41
A complete list of available config options can be found [here](docs/config-options.md).
54
42
55
-
3. Run the Hound server with `houndd` in the same directory as your `config.json`, which is most likely your `$GOPATH/bin` directory. You should see output similar to:
43
+
3. Run the Hound server with `houndd` in the same directory as your `config.json`. You should see output similar to:
56
44
```
57
45
2015/03/13 09:07:42 Searcher started for statsd
58
46
2015/03/13 09:07:42 Searcher started for Hound
@@ -62,21 +50,47 @@ the config found in [default-config.json](default-config.json):
62
50
63
51
4. By default, hound hosts a web ui at http://localhost:6080 . Open it in your browser, and start searching.
64
52
65
-
### Using Docker (1.4+)
53
+
### Using Docker (1.14+)
66
54
67
55
0.[Install docker](https://docs.docker.com/get-docker/) if you don't have it. We need at least `Docker >= 1.14`.
68
56
69
57
1. Create a config.json file and use it to list your repositories. Check out our [example-config.json](config-example.json)
70
58
to see how to set up various types of repositories. For example, we can configure Hound to search its own source code using
71
59
the config found in [default-config.json](default-config.json).
72
60
73
-
2. Run
74
-
```
75
-
docker run -d -p 6080:6080 --name hound -v $(pwd):/data ghcr.io/hound-search/hound:latest
76
-
```
61
+
62
+
#### Run with image from github
63
+
64
+
```
65
+
docker run -d -p 6080:6080 --name hound -v $(pwd):/data ghcr.io/hound-search/hound:latest
66
+
```
77
67
78
68
You should be able to navigate to [http://localhost:6080/](http://localhost:6080/) as usual.
@@ -168,9 +181,8 @@ You need to install `Node.js >= 12` and install `jest` by `npm install jest` to
168
181
169
182
### Working on the web UI
170
183
171
-
Hound includes a web UI that is composed of several files (html, css, javascript, etc.). To make sure hound works seamlessly with the standard Go tools, these resources are all bundled inside of the `houndd` binary. Note that changes to the UI will result in local changes to the `ui/bindata.go` file. You must include these changes in your Pull Request.
172
-
173
-
To bundle UI changes in `ui/bindata.go` use:
184
+
Hound includes a web UI that is composed of several files (html, css, javascript, etc.).
0 commit comments