An open API service indexing awesome lists of open source software.

https://github.com/matheusgb/autocomplete

🗒️ | A full-stack app leveraging WebSocket and Elasticsearch, built purely for enjoyment and to expand my skill set.
https://github.com/matheusgb/autocomplete

css elasticsearch golang html integration-testing javascript websocket

Last synced: about 2 months ago
JSON representation

🗒️ | A full-stack app leveraging WebSocket and Elasticsearch, built purely for enjoyment and to expand my skill set.

Awesome Lists containing this project

README

          




Markdownify


Autocomplete


Toy project made with Golang.



go version


Key Features
How To Use
Documentation

## Key Features

* Saves and returns data from Elasticsearch.
* List of most saved words in Elasticsearch.
* Uses WebSocket to list autocomplete suggestions from Elasticsearch.
* List of most frequently saved words in Elasticsearch using WebSocket.

## How To Use

Initialize Elasticsearch in docker with:

```
docker-compose up
```

If you have [air](https://github.com/air-verse/air) installed, you can run the backend with the command in root folder:

```
air
```

Also, you can run with:

```
go run main.go
```

You can run frontend with [LiveServer vscode extension](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer).

You can run integration tests with:

```
go test -v
```
But you need to initialize Elasticsearch before.

## Documentation

If you want Elasticsearch with some data, use the `GET - /populate` route.