Skip to content

OpenNCCU/esample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔍 ElasticSearch Playground

Node.js Python Shell ElasticSearch

🧠 A simple ElasticSearch playground...
for people who Google "how to ElasticSearch" more than once a week.

這個專案是個 ElasticSearch 的全方位入門練習場,支援三種語言:Node.js、Python 和最硬派的 Shell Script。
不論你是工程師、資料科學家,還是剛學會 docker compose up 的勇者,都可以用這個小專案來試著跟 ElasticSearch「和平相處」。


🚀 How to Run

# Step 1: 啟動 ElasticSearch (via Docker)
docker compose up -d

# Step 2: 進入 sample 專案目錄
cd sample

# Step 3: 執行以下其中一個程式:
node index.js      # Node 版本
python main.py     # Python 版本
./test.sh          # Shell 版本(硬派風格)

📁 Project Structure

.
├── docker-compose.yml      # ElasticSearch container
├── sample/
│   ├── index.js            # Node.js 實作
│   ├── main.py             # Python 實作
│   └── test.sh             # Shell 實作
└── README.md               # 就是這份檔案!

🧱 System Diagram

+---------------------+
|  You                |
+---------+-----------+
          |
          ▼
+---------------------+
|  index.js / main.py |
|  test.sh            |
+---------+-----------+
          |
          ▼
+---------------------+
|  ElasticSearch API  |
|  (localhost:9200)   |
+---------------------+

📦 Dependencies

  • Docker (for ElasticSearch)
  • Node.js (v18+)
  • Python 3.x
  • Bash shell

🪪 License

MIT – 請自由使用、改造,甚至重構成你完全看不懂的版本也沒關係 🙃
歡迎 PR!不然我以後 debug 會很孤單。

About

for Elasticsearch noob

Resources

Stars

Watchers

Forks