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.
- Host: GitHub
- URL: https://github.com/matheusgb/autocomplete
- Owner: matheusgb
- Created: 2024-09-11T02:56:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-11T16:58:48.000Z (over 1 year ago)
- Last Synced: 2025-04-07T10:44:02.845Z (about 1 year ago)
- Topics: css, elasticsearch, golang, html, integration-testing, javascript, websocket
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Autocomplete
Toy project made with Golang.
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.