https://github.com/levieyal/elastic-test
Just a basic app testing Elasticsearch with Node.js.
https://github.com/levieyal/elastic-test
docker elasticsearch fastify fastify-swagger nodejs
Last synced: 3 months ago
JSON representation
Just a basic app testing Elasticsearch with Node.js.
- Host: GitHub
- URL: https://github.com/levieyal/elastic-test
- Owner: LeviEyal
- Created: 2024-06-17T17:02:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T06:46:16.000Z (about 2 years ago)
- Last Synced: 2025-10-11T23:23:27.892Z (8 months ago)
- Topics: docker, elasticsearch, fastify, fastify-swagger, nodejs
- Language: TypeScript
- Homepage:
- Size: 3.72 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elastic Search & Node.js API
This is a simple API that uses elastic search to store and retrieve logs.
# Running instructions
1. Clone the repository
2. Run the elastic search server
```bash
docker compose -f ./dev/docker-compose.yml up -d elasticsearch
```
3. Run the following command to install the required packages
```bash
cd src
pnpm install
pnpm build
pnpm start
```
4. Run the script to create the index and add the data
```bash
cd src
pnpm run add-logs
```
4. Open the browser and navigate to `http://localhost:8080/` to view the swagger documentation
# Screenshots



# Technologies used
1. Node.js
2. Elastic Search
3. TypeScript
4. Fastify
5. Pino