This project is a Node.js Express application with Elasticsearch integration, featuring basic CRUD operations for both indices and documents.
This project includes the following components:
- Express API with CRUD endpoints using Elasticsearch as the database
- Elasticsearch client for basic actions: CRUD operations for indices and documents
You will need the following tools:
- Node.js (along with npm)
- Elasticsearch
Follow these steps to set up your development environment:
- Clone the repository:
git clone https://github.com/grishahovhanyan/elasticsearch-node.git
- Navigate to the project directory:
cd elasticsearch-node
- Install the dependencies:
npm install
- Ensure Elasticsearch is running on your machine or set up your connection in the
elasticsearchclient configuration.
- Start the Express server:
npm run start:dev
- The server will be running at
http://localhost:3000. The Swagger UI will be available athttp://localhost:3000/swagger-ui/.
- Get Todos:
GET /todos/ - Create Todo:
POST /todos/ - Get Todo by Id:
GET /todos/:id/ - Update Todo by Id:
PUT /todos/:id/ - Delete Todo by Id:
DELETE /todos/:id/
- Grisha Hovhanyan - github:grishahovhanyan

