@@ -57,72 +57,19 @@ Now, this project is running now.
57
57
58
58
Tip: if you just need a backend service to collect all data, Run Step 1 and Step 2.
59
59
60
- # Step 3. Run meiliSearch
60
+ # Step 3. Run the deployment script
61
61
62
- Run a meiliSearch service to sync MySql data for front service to search quickly
62
+ Run the script to launch the service
63
63
64
64
```
65
65
cd deploy
66
- docker-compose -f docker-compose-meiliSearch.yml up -d meiliSearch
66
+ ./star.sh
67
67
```
68
68
69
- Now, meiliSearch is running.
69
+ Now, this project is running.
70
70
71
- # Step 4. Run meiliSync
72
71
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
126
73
127
74
We can visit meiliSearch api to validate meiliSync service. more [ meiliSearch docs] ( https://www.meilisearch.com/docs/reference/api/overview )
128
75
@@ -166,5 +113,5 @@ You should get a result, similar to :
166
113
}
167
114
```
168
115
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.
170
117
0 commit comments