Skip to content

Commit 7119bde

Browse files
committed
update README.md
1 parent bb9193e commit 7119bde

File tree

1 file changed

+6
-59
lines changed

1 file changed

+6
-59
lines changed

README.md

+6-59
Original file line numberDiff line numberDiff line change
@@ -57,72 +57,19 @@ Now, this project is running now.
5757

5858
Tip: if you just need a backend service to collect all data, Run Step 1 and Step 2.
5959

60-
# Step 3. Run meiliSearch
60+
# Step 3. Run the deployment script
6161

62-
Run a meiliSearch service to sync MySql data for front service to search quickly
62+
Run the script to launch the service
6363

6464
```
6565
cd deploy
66-
docker-compose -f docker-compose-meiliSearch.yml up -d meiliSearch
66+
./star.sh
6767
```
6868

69-
Now, meiliSearch is running.
69+
Now, this project is running.
7070

71-
# Step 4. Run meiliSync
7271

73-
first, we need to find the api_key of meiliSearch
74-
75-
```
76-
curl -H "Authorization: Bearer <Token>" http://localhost:port/keys
77-
```
78-
79-
You should get a result, similar to :
80-
81-
```json
82-
{
83-
"results": [{
84-
"name": "Default Search API Key",
85-
"description": "Use it to search from the frontend",
86-
"key": "d09536ef1e2742b4792c607465dc169f659f1b2dcb0107bfdce2542b602ed534",
87-
"uid": "675ff658-9e73-460c-a3be-c6fcee624edf",
88-
"actions": ["search"],
89-
"indexes": ["*"],
90-
"expiresAt": null,
91-
"createdAt": "2024-08-06T08:47:38.225365511Z",
92-
"updatedAt": "2024-08-06T08:47:38.225365511Z"
93-
}, {
94-
"name": "Default Admin API Key",
95-
"description": "Use it for anything that is not a search operation. Caution! Do not expose it on a public frontend",
96-
"key": "abc40e8457b32aa86d20ab0db0b42a86298b253209c4c31d9936b378e686d132",
97-
"uid": "db1499f6-59a1-42c7-a13a-e18e191f456c",
98-
"actions": ["*"],
99-
"indexes": ["*"],
100-
"expiresAt": null,
101-
"createdAt": "2024-08-06T08:47:38.225052792Z",
102-
"updatedAt": "2024-08-06T08:47:38.225052792Z"
103-
}],
104-
"offset": 0,
105-
"limit": 20,
106-
"total": 2
107-
}
108-
```
109-
110-
And, use `Default Admin API Key`, `key` to update config.yml
111-
112-
```
113-
meilisearch:
114-
api_url: http://localhost:7701
115-
api_key: abc40e8457b32aa86d20ab0db0b42a86298b253209c4c31d9936b378e686d132
116-
```
117-
118-
launch the meiliSync service
119-
120-
```
121-
cd deploy
122-
docker-compose -f docker-compose-meiliSearch up -d meiliSync
123-
```
124-
125-
# Step 5. Validate meiliSync Service
72+
# Step 4. Validate meiliSync Service
12673

12774
We can visit meiliSearch api to validate meiliSync service. more [meiliSearch docs](https://www.meilisearch.com/docs/reference/api/overview)
12875

@@ -166,5 +113,5 @@ You should get a result, similar to :
166113
}
167114
```
168115

169-
If you get information like this, it means our deploy it`s success.
116+
If you get information like this, it means our deployment it`s success.
170117

0 commit comments

Comments
 (0)