1
0
mirror of https://github.com/stevenferrer/multi-select-facet.git synced 2025-11-23 21:54:45 +02:00
Files
multi-select-facet/README.md

51 lines
1.2 KiB
Markdown
Raw Normal View History

2020-06-09 19:15:43 +08:00
# Multi-Select Facet Example
2021-11-04 09:05:29 +08:00
An example of multi-select facet using [Solr](https://solr.apache.org), [Vue](https://vuejs.org) and [Go](http://go.dev/).
2020-06-09 19:15:43 +08:00
2021-11-04 09:05:29 +08:00
Blog post: [Multi-Select Facet with Solr, Vue and Go](https://stevenferrer.github.io/posts/multi-select-facet-solr-vue-go/)
![screenshot](./screenshot.png)
2020-06-13 23:21:28 +08:00
## Running the example
2020-06-09 19:15:43 +08:00
2021-02-10 09:52:07 +08:00
1. Run Solr using [podman](https://podman.io/).
```console
2021-02-10 09:52:07 +08:00
$ make start-solr
```
2020-10-19 18:35:21 +08:00
2021-02-10 09:52:07 +08:00
Or using `docker`.
2020-10-19 18:35:21 +08:00
```console
2021-02-10 09:52:07 +08:00
$ PODMAN=docker make start-solr
2020-10-19 18:35:21 +08:00
```
2. Run the API
```console
// build the api
2021-02-10 09:52:07 +08:00
$ go build -v -o api
2021-02-10 09:52:07 +08:00
// start the api with the initialization options
$ ./api -create-collection -init-schema -index-data -init-suggester
```
3. Run the web app (open a new terminal tab)
```console
// cd to web app folder
$ cd webapp
// install dependencies
$ yarn // or npm install
// start the web app
$ yarn serve // or npm run serve
```
4. Open http://localhost:8080 in your browser and start playing with it!
## Contributing
2021-11-04 09:05:29 +08:00
Feel free to improve this project by [make a pull-request](https://github.com/stevenferrer/multi-select-facet/pulls) or [opening an issue](https://github.com/stevenferrer/multi-select-facet/issues).
## License
MIT