-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add readme how wisdoms checker work, IMPORTANT: change back to one . …
…(dot)
- Loading branch information
1 parent
352ab46
commit 6445371
Showing
2 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Adding new wisdom | ||
|
||
1. Update wisdoms.json file. | ||
|
||
Example: | ||
|
||
#### Previous | ||
|
||
```typescript | ||
[ | ||
{"description": "Every day, every minute, every second, we are creating evidence for our self that we are qualified for the life we want!"}, | ||
{"description":"Hope it works!"}, | ||
{"description": "Knowledge is power."}, | ||
{"description": "Time is money."} | ||
] | ||
``` | ||
|
||
#### New | ||
|
||
|
||
```typescript | ||
[ | ||
{"description": "Every day, every minute, every second, we are creating evidence for our self that we are qualified for the life we want!"}, | ||
{"description":"Hope it works!"}, | ||
{"description": "Knowledge is power."}, | ||
{"description": "Time is money."}, | ||
{"description": "New Wisdom"} | ||
] | ||
``` | ||
|
||
2. Run command | ||
|
||
```shell | ||
base64 wisdoms.json | ||
``` | ||
|
||
Result should be something like this: | ||
|
||
``` | ||
WwogICAgeyJkZXNjcmlwdGlvbiI6ICJFdmVyeSBkYXksIGV2ZXJ5IG1pbnV0ZSwgZXZlcnkgc2Vj | ||
b25kLCB3ZSBhcmUgY3JlYXRpdwdqdwdqddqdqwdqdqwd...ciBzZWxmIHRoYXQgd2UgYXJlIHF1 | ||
ICAgeyJkZXNjcmlwdGlvbiI6IkFBQUFBQUFBQUFBQUFBQUFBIn0sCiAgICB7ImRlc2NyaXB0aW9u | ||
IjoiQkJCQkJCQkJCQkJCQkJCQkJCQiJ9Cl0KICA= | ||
``` | ||
|
||
3. Copy the result | ||
|
||
|
||
4. Paste the result into file `encoded-wisdoms.b64` | ||
|
||
5. If the `worker-wisdoms-checker` is running, it will pick up the changes and update the database. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters