This is a simple API that uses elastic search to store and retrieve logs.
-
Clone the repository
-
Run the elastic search server
docker compose -f ./dev/docker-compose.yml up -d elasticsearch
- Run the following command to install the required packages
cd src
pnpm install
pnpm build
pnpm start
- Run the script to create the index and add the data
cd src
pnpm run add-logs
- Open the browser and navigate to
http://localhost:8080/
to view the swagger documentation
- Node.js
- Elastic Search
- TypeScript
- Fastify
- Pino